|
@@ -2,6 +2,7 @@ package com.zhongzheng.modules.course.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.modules.course.bo.*;
|
|
|
import com.zhongzheng.modules.course.domain.CourseChapterSection;
|
|
@@ -132,6 +133,10 @@ public class CourseChapterSectionServiceImpl extends ServiceImpl<CourseChapterSe
|
|
|
@Override
|
|
|
public List<CourseUserChapterSectionVo> sectionList(CourseMenuQueryBo bo) {
|
|
|
List<CourseUserChapterSectionVo> courseUserChapterSectionVos = courseChapterSectionMapper.sectionList(bo);
|
|
|
+ if (!CollectionUtils.isEmpty(courseUserChapterSectionVos)) {
|
|
|
+ bo.setModuleId(courseUserChapterSectionVos.get(0).getModuleId());
|
|
|
+ bo.setChapterId(courseUserChapterSectionVos.get(0).getChapterId());
|
|
|
+ }
|
|
|
courseUserChapterSectionVos.addAll(courseChapterSectionMapper.examList(bo));
|
|
|
if (bo.getUserId() != null) {
|
|
|
for (CourseUserChapterSectionVo courseMenuVo : courseUserChapterSectionVos) {
|