Commit 5d837bcf authored by luzhuang's avatar luzhuang

Merge remote-tracking branch 'origin/meiteng' into meiteng

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