|
@@ -11,10 +11,7 @@ import com.zhongzheng.modules.course.domain.CourseStreamingBusiness;
|
|
import com.zhongzheng.modules.course.mapper.CourseChapterMapper;
|
|
import com.zhongzheng.modules.course.mapper.CourseChapterMapper;
|
|
import com.zhongzheng.modules.course.mapper.CourseChapterSectionMapper;
|
|
import com.zhongzheng.modules.course.mapper.CourseChapterSectionMapper;
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
-import com.zhongzheng.modules.course.vo.CourseChapterSectionVo;
|
|
|
|
-import com.zhongzheng.modules.course.vo.CourseUserChapterSectionVo;
|
|
|
|
-import com.zhongzheng.modules.course.vo.CourseUserMenuVo;
|
|
|
|
-import com.zhongzheng.modules.course.vo.CourseUserVo;
|
|
|
|
|
|
+import com.zhongzheng.modules.course.vo.*;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -192,6 +189,13 @@ public class CourseChapterSectionServiceImpl extends ServiceImpl<CourseChapterSe
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<CourseUserChapterSectionVo> sectionExamList(CourseMenuQueryBo bo) {
|
|
public List<CourseUserChapterSectionVo> sectionExamList(CourseMenuQueryBo bo) {
|
|
- return baseMapper.sectionExamList(bo);
|
|
|
|
|
|
+ List<CourseUserChapterSectionVo> examList = baseMapper.sectionExamList(bo);
|
|
|
|
+ for(CourseUserChapterSectionVo vo : examList){
|
|
|
|
+ Integer learning = baseMapper.learningSectionExamCheck(0L, vo.getGradeId(), bo.getUserId(), bo.getModuleId(), bo.getChapterId(), vo.getTypeId(),bo.getCourseId(),vo.getSectionId());
|
|
|
|
+ if(Validator.isNotEmpty(learning)){
|
|
|
|
+ vo.setLearning(new Long(learning));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return examList;
|
|
}
|
|
}
|
|
}
|
|
}
|