Blame view

CompanyMemberMappingMapper.java 1.53 KB
涂亚平 committed
1 2 3 4 5 6
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.CompanyMemberMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.model.MemberDO;
涂亚平 committed
7
import com.subsidy.vo.company.GetCompanyMembersVO;
涂亚平 committed
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 49 50
import com.subsidy.vo.company.MemberCompanyVO;
import com.subsidy.vo.member.AttendMembersVO;
import com.subsidy.vo.member.DepartMembersVO;
import com.subsidy.vo.member.MemberAttendInfoVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 公司人员映射表 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2024-01-11
 */
@Repository
public interface CompanyMemberMappingMapper extends BaseMapper<CompanyMemberMappingDO> {

    /**
     * 查询某个人带过公司的记录
     */
    List<MemberCompanyVO> memberCompanys(Long memberId);

    /**
     * 查看某个公司的离职记录
     */
    IPage<DepartMembersVO> departMembers(IPage iPage, Long companyId, String userName);

    /**
     * 某公司参加过培训的学生名单
     */
    IPage<AttendMembersVO> attendMembers(IPage iPage, Long companyId, Long departmentId, String userName);

    /**
     * 某个学员参加过某个公司的所有培训
     */
    List<MemberAttendInfoVO> memberAttendInfo(Long memberId, Long companyId);

    /**
     * 查看某个公司accountName的人
     */
    List<MemberDO> companyAccountMembers(Long companyId, String accountName);
涂亚平 committed
51 52 53 54 55 56

    /**
     * 查看公司里里全部的人
     */
    List<String> companyMembers(Long companyId);

涂亚平 committed
57
}