ClassDictMapper.java 985 Bytes
package com.subsidy.mapper;

import com.subsidy.dto.classDict.GetAllClassesDTO;
import com.subsidy.dto.classDict.GetSpareMembersDTO;
import com.subsidy.model.ClassDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.model.MemberDO;
import com.subsidy.model.VodDictDO;
import com.subsidy.vo.classdict.GetAllClassesVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 班级id Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-10-12
 */
@Repository
public interface ClassDictMapper extends BaseMapper<ClassDictDO> {

    /**
     * 获取某企业的全部班级
     */
    List<GetAllClassesVO> getAllClasses(ClassDictDO  classDictDO);

    /**
     * 获取某班级下的全部视频
     */
    List<VodDictDO> getClassVods(Long classId);

    /**
     * 查看某企业里,不在某班级的成员
     * @return
     */
    List<MemberDO> getSpareMembers(GetSpareMembersDTO getSpareMembersDTO);


}