Commit 68d9ef0d authored by 王淑君's avatar 王淑君

若该课程因进度条到达100%,编辑章节文件后,从新出现在未开始页面

parent 57c58c93
...@@ -326,6 +326,9 @@ public class BChapterServiceImpl implements BChapterService { ...@@ -326,6 +326,9 @@ public class BChapterServiceImpl implements BChapterService {
if (learnProgress > 0 && newLearnProgress < 0.01){ if (learnProgress > 0 && newLearnProgress < 0.01){
newLearnProgress = 0.01f; newLearnProgress = 0.01f;
} }
if ("2".equals(lessonPerson.getIsFinish()) && newLearnProgress < 1){
lessonPerson.setIsFinish("1");
}
lessonPerson.setLearnProgress(newLearnProgress*100 + "%"); lessonPerson.setLearnProgress(newLearnProgress*100 + "%");
bLessonPersonRepository.updateByPrimaryKeySelective(lessonPerson); bLessonPersonRepository.updateByPrimaryKeySelective(lessonPerson);
studentChapter.setProgress(0); studentChapter.setProgress(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment