|
@@ -6,10 +6,15 @@ import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.modules.course.bo.CourseModuleChapterAddBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseModuleChapterEditBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseModuleChapterQueryBo;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseSectionQueryBo;
|
|
|
import com.zhongzheng.modules.course.domain.CourseModuleChapter;
|
|
|
+import com.zhongzheng.modules.course.mapper.CourseChapterSectionMapper;
|
|
|
import com.zhongzheng.modules.course.mapper.CourseModuleChapterMapper;
|
|
|
import com.zhongzheng.modules.course.service.ICourseModuleChapterService;
|
|
|
+import com.zhongzheng.modules.course.vo.CourseChapterSectionVo;
|
|
|
import com.zhongzheng.modules.course.vo.CourseModuleChapterVo;
|
|
|
+import com.zhongzheng.modules.course.vo.CourseSectionVo;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -30,12 +35,21 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class CourseModuleChapterServiceImpl extends ServiceImpl<CourseModuleChapterMapper, CourseModuleChapter> implements ICourseModuleChapterService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CourseModuleChapterMapper courseModuleChapterMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public CourseModuleChapterVo queryById(Long id){
|
|
|
CourseModuleChapter db = this.baseMapper.selectById(id);
|
|
|
return BeanUtil.toBean(db, CourseModuleChapterVo.class);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<CourseModuleChapterVo> getListById(Long id) {
|
|
|
+ return courseModuleChapterMapper.getListById(id);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public List<CourseModuleChapterVo> queryList(CourseModuleChapterQueryBo bo) {
|
|
|
LambdaQueryWrapper<CourseModuleChapter> lqw = Wrappers.lambdaQuery();
|