|
@@ -8,9 +8,11 @@ import com.zhongzheng.modules.course.bo.CourseChapterSectionAddBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseChapterSectionEditBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseChapterSectionQueryBo;
|
|
|
import com.zhongzheng.modules.course.domain.CourseChapterSection;
|
|
|
+import com.zhongzheng.modules.course.mapper.CourseChapterMapper;
|
|
|
import com.zhongzheng.modules.course.mapper.CourseChapterSectionMapper;
|
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseChapterSectionVo;
|
|
|
+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;
|
|
@@ -31,12 +33,20 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class CourseChapterSectionServiceImpl extends ServiceImpl<CourseChapterSectionMapper, CourseChapterSection> implements ICourseChapterSectionService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CourseChapterSectionMapper courseChapterSectionMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public CourseChapterSectionVo queryById(Long id){
|
|
|
CourseChapterSection db = this.baseMapper.selectById(id);
|
|
|
return BeanUtil.toBean(db, CourseChapterSectionVo.class);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<CourseChapterSectionVo> getListById(Long id) {
|
|
|
+ return courseChapterSectionMapper.getListById(id);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<CourseChapterSectionVo> queryList(CourseChapterSectionQueryBo bo) {
|
|
|
LambdaQueryWrapper<CourseChapterSection> lqw = Wrappers.lambdaQuery();
|