CourseDictMapper.java 1.35 KB
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);

}