Blame view

CourseDictMapper.java 1.35 KB
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.ClassMemberMappingDO;
import com.subsidy.model.CourseDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.model.MemberDO;
import com.subsidy.vo.course.QueryCoursesVO;
import com.subsidy.vo.member.StudyPageVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-10-11
 */
@Repository
public interface CourseDictMapper extends BaseMapper<CourseDictDO> {

    /**
     * 查询全部课程
     * @return
     */
    IPage<QueryCoursesVO > queryCourses(IPage page, String courseName, Long categoryId, String courseType, String  courseSource,Long companyId);

    /**
     * 通过课程id查询课程下的学生-----弃用
     */
    List<ClassMemberMappingDO > queryCourseMember(StudyPageVO studyPageVO);

    /**
     * 查询全部公共课程
     * @return
     */
    IPage<QueryCoursesVO > queryPublicCourses(IPage page, String courseName, Long categoryId, String courseType, String  courseSource);

    /**
     * 查询企业内部课程
     */
    IPage<QueryCoursesVO> queryCompanyCourse(IPage page, String courseName, Long categoryId, String courseType, String  courseSource,Long companyId);

}