Blame view

MemberMapper.java 1.39 KB
涂亚平 committed
1 2 3
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
4
import com.subsidy.model.DepartmentDictDO;
涂亚平 committed
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
import com.subsidy.model.MemberDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.vo.member.GetAllVO;
import com.subsidy.vo.member.ManageMemberVO;
import org.springframework.stereotype.Repository;

import java.util.List;

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

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

    /**
     * 查询某公司所有的学生 公司不传就是查平台所有学生
     */
    IPage<ManageMemberVO> manageMember(IPage iPage, Long companyId, String userName, String startDate, String endDate);

    /**
     * 查询某个部门的员工  不分页
     */
    List<MemberDO> getMemberWithoutPage(Long departmentId, String userName, String status, String startDate, String endDate);

39 40 41 42 43 44 45 46 47 48
    /**
     * 查询某公司的学生
     */
    IPage<GetAllVO> getCompanyMember(IPage iPage,Long companyId,String userName,String status,String startDate,String endDate);

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

涂亚平 committed
49
}