weaver-hrm-organization/src/com/engine/organization/mapper/staff/StaffMapper.java

85 lines
1.9 KiB
Java
Raw Normal View History

2022-05-26 10:11:02 +08:00
package com.engine.organization.mapper.staff;
import com.engine.organization.entity.staff.po.StaffPO;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
2022-05-26 10:11:02 +08:00
/**
* @Author dxfeng
2022-06-14 11:07:48 +08:00
* @description:
2022-05-26 10:11:02 +08:00
* @Date 2022/5/25
* @Version V1.0
**/
public interface StaffMapper {
/**
* 根据ID查询编制方案
*
2022-05-26 10:11:02 +08:00
* @param id
* @return
*/
StaffPO getStaffByID(@Param("id") long id);
2022-06-08 09:01:13 +08:00
/**
* 根据分部部门岗位查询编制
*
* @param companyId
* @param departmentId
* @param jobId
* @return
*/
2022-08-02 14:42:25 +08:00
List<StaffPO> getStaffByFilter(@Param("companyId") Long companyId, @Param("departmentId") Long departmentId, @Param("jobId") Long jobId);
2022-06-08 09:01:13 +08:00
2023-09-04 17:52:02 +08:00
/**
* @Description: b
* @Author: liang.cheng
* @Date: 2023/9/4 11:26 AM
* @param: [planId, companyId, departmentId, jobId]
* @return: com.engine.organization.entity.staff.po.StaffPO
*/
StaffPO customSelect(@Param("planId") Integer planId,@Param("companyId") Integer companyId, @Param("departmentId") Integer departmentId, @Param("jobId") Integer jobId);
2022-05-26 10:11:02 +08:00
/**
* 插入编制方案
*
2022-05-26 10:11:02 +08:00
* @param staffPO
* @return
*/
int insertIgnoreNull(StaffPO staffPO);
/**
* 修改修改所有字段
*
* @param staffPO
* @return
*/
int updateStaff(StaffPO staffPO);
/**
* 批量删除
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
/**
* 查询所有被引用的ID
*
* @return
*/
List<String> listUsedId();
2022-07-07 14:19:56 +08:00
List<StaffPO> getStaffsByIds(@Param("ids") Collection<Long> ids);
/**
* 查询同维度的所有编制方案
* @return
*/
StaffPO getStaffsByParamId(@Param("ftype") Integer ftype,@Param("compId") String compId,@Param("deptId") String deptId,@Param("jobId") String jobId);
2022-05-26 10:11:02 +08:00
}