| | |
| | | List<HrmEmployeeDO> getEmployeeList(Collection<Long> ids); |
| | | |
| | | /** |
| | | * 获得指定状态的员工列表(返回 DO) |
| | | * |
| | | * <p>注意:不能把 null 传给 {@link #getEmployeeList(Collection)}, |
| | | * MyBatis-Plus 的 selectByIds(null) 会抛 "The expression 'coll' evaluated to a null value"。 |
| | | * |
| | | * @param employeeStatus 员工状态,为 null 时查询全部 |
| | | * @return 员工列表 |
| | | */ |
| | | List<HrmEmployeeDO> getEmployeeListByStatus(Integer employeeStatus); |
| | | |
| | | /** |
| | | * 调岗生效:把员工档案的部门/岗位同步为目标部门/目标岗位 |
| | | * |
| | | * @param employeeId 员工编号(hrm_employee.id) |
| | | * @param targetDeptId 目标部门编号,为 null 时不改 |
| | | * @param targetPostId 目标岗位编号,为 null 时不改 |
| | | */ |
| | | void syncEmployeeTransfer(Long employeeId, Long targetDeptId, Long targetPostId); |
| | | |
| | | /** |
| | | * 离职生效:把员工档案状态置为「离职」 |
| | | * |
| | | * @param systemUserId 系统用户编号(hrm_employee.user_id,即 system_users.id) |
| | | * @param leaveDate 离职日期,为 null 时取当天 |
| | | */ |
| | | void syncEmployeeResignation(Long systemUserId, java.time.LocalDate leaveDate); |
| | | |
| | | /** |
| | | * 获得指定状态的员工简单列表 |
| | | * |
| | | * @param employeeStatus 员工状态,为 null 时查询全部 |