MemberMapper.java 926 Bytes
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.DepartmentDictDO;
import com.subsidy.model.MemberDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.vo.member.GetAllVO;
import com.subsidy.vo.member.StudyPageVO;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 学生表 Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-10-11
 */
@Repository
public interface MemberMapper extends BaseMapper<MemberDO> {

    /**
     * 查看学生的课程
     */
    List<StudyPageVO> studyPage(MemberDO memberDO);

    /**
     * 查询学生所在部门
     */
    List<DepartmentDictDO> getDepartments(Long memberId);

    /**
     * 查询部门所有的学生
     */
    IPage<GetAllVO > getMembers(IPage iPage,Long departmentId,String userName,String status);

}