|
@@ -9,6 +9,7 @@ import com.zhongzheng.modules.course.bo.CourseEditBo;
|
|
import com.zhongzheng.modules.course.bo.CourseQueryBo;
|
|
import com.zhongzheng.modules.course.bo.CourseQueryBo;
|
|
import com.zhongzheng.modules.course.domain.Course;
|
|
import com.zhongzheng.modules.course.domain.Course;
|
|
import com.zhongzheng.modules.course.mapper.CourseMapper;
|
|
import com.zhongzheng.modules.course.mapper.CourseMapper;
|
|
|
|
+import com.zhongzheng.modules.course.mapper.CourseSectionMapper;
|
|
import com.zhongzheng.modules.course.service.ICourseSectionBusinessService;
|
|
import com.zhongzheng.modules.course.service.ICourseSectionBusinessService;
|
|
import com.zhongzheng.modules.course.service.ICourseService;
|
|
import com.zhongzheng.modules.course.service.ICourseService;
|
|
import com.zhongzheng.modules.course.vo.CourseVo;
|
|
import com.zhongzheng.modules.course.vo.CourseVo;
|
|
@@ -33,7 +34,8 @@ import java.util.stream.Collectors;
|
|
@Service
|
|
@Service
|
|
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
|
|
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private CourseMapper courseMapper;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public CourseVo queryById(Long courseId){
|
|
public CourseVo queryById(Long courseId){
|
|
@@ -41,6 +43,11 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
|
return BeanUtil.toBean(db, CourseVo.class);
|
|
return BeanUtil.toBean(db, CourseVo.class);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public CourseVo selectById(Long id) {
|
|
|
|
+ return courseMapper.selectDetailById(id);
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public List<CourseVo> queryList(CourseQueryBo bo) {
|
|
public List<CourseVo> queryList(CourseQueryBo bo) {
|
|
LambdaQueryWrapper<Course> lqw = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<Course> lqw = Wrappers.lambdaQuery();
|