|
|
@@ -11,15 +11,16 @@ import com.zhongzheng.modules.course.domain.Course;
|
|
|
import com.zhongzheng.modules.course.mapper.CourseMapper;
|
|
|
import com.zhongzheng.modules.course.service.ICourseService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseVo;
|
|
|
+import com.zhongzheng.modules.system.domain.SysUserRole;
|
|
|
+import com.zhongzheng.modules.system.mapper.SysRoleMapper;
|
|
|
+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;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.github.pagehelper.Page;
|
|
|
|
|
|
-import java.util.Collection;
|
|
|
-import java.util.Collections;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
@@ -31,6 +32,9 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CourseMapper courseMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public CourseVo queryById(Long courseId){
|
|
|
Course db = this.baseMapper.selectById(courseId);
|
|
|
@@ -53,6 +57,11 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
|
|
return entity2Vo(this.list(lqw));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<CourseVo> selectCourseList(CourseQueryBo bo) {
|
|
|
+ return courseMapper.selectCourseList(bo);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 实体类转化成视图对象
|
|
|
*
|