|
@@ -10,6 +10,8 @@ import com.zhongzheng.modules.course.domain.CourseModuleBusiness;
|
|
import com.zhongzheng.modules.course.mapper.CourseModuleBusinessMapper;
|
|
import com.zhongzheng.modules.course.mapper.CourseModuleBusinessMapper;
|
|
import com.zhongzheng.modules.course.service.ICourseModuleBusinessService;
|
|
import com.zhongzheng.modules.course.service.ICourseModuleBusinessService;
|
|
import com.zhongzheng.modules.course.vo.CourseModuleBusinessVo;
|
|
import com.zhongzheng.modules.course.vo.CourseModuleBusinessVo;
|
|
|
|
+import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -29,12 +31,20 @@ import java.util.stream.Collectors;
|
|
@Service
|
|
@Service
|
|
public class CourseModuleBusinessServiceImpl extends ServiceImpl<CourseModuleBusinessMapper, CourseModuleBusiness> implements ICourseModuleBusinessService {
|
|
public class CourseModuleBusinessServiceImpl extends ServiceImpl<CourseModuleBusinessMapper, CourseModuleBusiness> implements ICourseModuleBusinessService {
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private CourseModuleBusinessMapper courseModuleBusinessMapper;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public CourseModuleBusinessVo queryById(Long id){
|
|
public CourseModuleBusinessVo queryById(Long id){
|
|
CourseModuleBusiness db = this.baseMapper.selectById(id);
|
|
CourseModuleBusiness db = this.baseMapper.selectById(id);
|
|
return BeanUtil.toBean(db, CourseModuleBusinessVo.class);
|
|
return BeanUtil.toBean(db, CourseModuleBusinessVo.class);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<CourseModuleBusiness> getListById(Long moduleId) {
|
|
|
|
+ return courseModuleBusinessMapper.getListById(moduleId);
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public List<CourseModuleBusinessVo> queryList(CourseModuleBusinessQueryBo bo) {
|
|
public List<CourseModuleBusinessVo> queryList(CourseModuleBusinessQueryBo bo) {
|
|
LambdaQueryWrapper<CourseModuleBusiness> lqw = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<CourseModuleBusiness> lqw = Wrappers.lambdaQuery();
|