Commit 512de1bb authored by 王淑君's avatar 王淑君

修改bug 21831

parent 68d9ef0d
......@@ -381,6 +381,14 @@ public class BChapterServiceImpl implements BChapterService {
if (learnProgress > 0 && newLearnProgress < 0.01){
newLearnProgress = 0.01f;
}
if ("2".equals(lessonPerson.getIsFinish())){
if (newLearnProgress < 1)
lessonPerson.setIsFinish("1");
else {
lessonPerson.setIsFinish("2");
lessonPerson.setLearnProgress("100%");
}
}
lessonPerson.setLearnProgress(newLearnProgress*100+"%");
bLessonPersonRepository.updateByPrimaryKeySelective(lessonPerson);
}
......
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