|
@@ -140,11 +140,19 @@ public class CourseChapterSectionServiceImpl extends ServiceImpl<CourseChapterSe
|
|
if (rebuild > 0) {
|
|
if (rebuild > 0) {
|
|
courseMenuVo.setRebuild(1);
|
|
courseMenuVo.setRebuild(1);
|
|
}
|
|
}
|
|
|
|
+ Integer learning = baseMapper.learningCheck(courseMenuVo.getTypeId(), courseMenuVo.getGradeId(), bo.getUserId(), bo.getModuleId(), bo.getChapterId(), 0L);
|
|
|
|
+ if (learning > 0) {
|
|
|
|
+ courseMenuVo.setLearning(1L);
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
Integer rebuild = baseMapper.rebuildCheck(courseMenuVo.getTypeId(), courseMenuVo.getGradeId(), bo.getUserId(), 0L, bo.getChapterId(), courseMenuVo.getTypeId());
|
|
Integer rebuild = baseMapper.rebuildCheck(courseMenuVo.getTypeId(), courseMenuVo.getGradeId(), bo.getUserId(), 0L, bo.getChapterId(), courseMenuVo.getTypeId());
|
|
if (rebuild > 0) {
|
|
if (rebuild > 0) {
|
|
courseMenuVo.setRebuild(1);
|
|
courseMenuVo.setRebuild(1);
|
|
}
|
|
}
|
|
|
|
+ Integer learning = baseMapper.learningCheck(courseMenuVo.getTypeId(), courseMenuVo.getGradeId(), bo.getUserId(), 0L, bo.getChapterId(), courseMenuVo.getTypeId());
|
|
|
|
+ if (learning > 0) {
|
|
|
|
+ courseMenuVo.setLearning(1L);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|