| | |
| | | import com.dsh.course.entity.TCourse; |
| | | import com.dsh.course.mapper.TCourseMapper; |
| | | import com.dsh.course.model.QueryCourseList; |
| | | import com.dsh.course.model.dto.CourseChangeStateDTO; |
| | | import com.dsh.course.model.dto.TQueryBenefitsVideosDTO; |
| | | import com.dsh.course.model.vo.TQueryBenefitsVideosVO; |
| | | import com.dsh.course.service.TCourseService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | */ |
| | | @Service |
| | | public class TCourseServiceImpl extends ServiceImpl<TCourseMapper, TCourse> implements TCourseService { |
| | | |
| | | @Autowired |
| | | private TCourseMapper courseMapper; |
| | | |
| | | /** |
| | | * 获取课程管理列表 |
| | | * |
| | | * @param page |
| | | * @param queryCourseList |
| | | * @return |
| | |
| | | public List<Map<String, Object>> queryCourseList(Page<Map<String, Object>> page, QueryCourseList queryCourseList) { |
| | | return this.baseMapper.queryCourseList(page, queryCourseList); |
| | | } |
| | | |
| | | @Override |
| | | public List<TQueryBenefitsVideosVO> getCourseByCourseIds(TQueryBenefitsVideosDTO query) { |
| | | |
| | | return courseMapper.getCourseByCourseIds(query); |
| | | } |
| | | |
| | | @Override |
| | | public Object changeState(CourseChangeStateDTO dto) { |
| | | List<Integer> ids = dto.getIds(); |
| | | return courseMapper.changeState(ids, dto.getState()); |
| | | } |
| | | } |