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