|
@@ -7,9 +7,11 @@ import com.zhongzheng.modules.course.bo.CourseStreamingBusinessAddBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseStreamingBusinessEditBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseStreamingBusinessQueryBo;
|
|
|
import com.zhongzheng.modules.course.domain.CourseStreamingBusiness;
|
|
|
+import com.zhongzheng.modules.course.mapper.CourseSectionBusinessMapper;
|
|
|
import com.zhongzheng.modules.course.mapper.CourseStreamingBusinessMapper;
|
|
|
import com.zhongzheng.modules.course.service.ICourseStreamingBusinessService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseStreamingBusinessVo;
|
|
|
+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 +32,20 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class CourseStreamingBusinessServiceImpl extends ServiceImpl<CourseStreamingBusinessMapper, CourseStreamingBusiness> implements ICourseStreamingBusinessService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CourseStreamingBusinessMapper courseStreamingBusinessMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public CourseStreamingBusinessVo queryById(Long id){
|
|
|
CourseStreamingBusiness db = this.baseMapper.selectById(id);
|
|
|
return BeanUtil.toBean(db, CourseStreamingBusinessVo.class);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<CourseStreamingBusiness> getListById(Long id) {
|
|
|
+ return courseStreamingBusinessMapper.getListById(id);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<CourseStreamingBusinessVo> queryList(CourseStreamingBusinessQueryBo bo) {
|
|
|
LambdaQueryWrapper<CourseStreamingBusiness> lqw = Wrappers.lambdaQuery();
|