package cn.iocoder.yudao.module.hrm.service.employee;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractImportExcelVO;
|
import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractImportReqVO;
|
import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractImportRespVO;
|
import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractPageReqVO;
|
import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractRespVO;
|
import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractSaveReqVO;
|
import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractTerminateReqVO;
|
|
import java.util.List;
|
|
/**
|
* 员工合同 Service 接口
|
*
|
* @author 超级管理员
|
*/
|
public interface HrmEmployeeContractService {
|
|
/**
|
* 创建员工合同
|
*
|
* @param createReqVO 创建请求
|
* @return 合同ID
|
*/
|
Long createContract(HrmEmployeeContractSaveReqVO createReqVO);
|
|
/**
|
* 更新员工合同
|
*
|
* @param updateReqVO 更新请求
|
*/
|
void updateContract(HrmEmployeeContractSaveReqVO updateReqVO);
|
|
/**
|
* 删除员工合同
|
*
|
* @param id 合同ID
|
*/
|
void deleteContract(Long id);
|
|
/**
|
* 解除/终止员工合同
|
*
|
* @param reqVO 解除/终止请求
|
*/
|
void terminateContract(HrmEmployeeContractTerminateReqVO reqVO);
|
|
/**
|
* 获得员工合同详情
|
*
|
* @param id 合同ID
|
* @return 合同详情(含附件、员工信息、动态状态)
|
*/
|
HrmEmployeeContractRespVO getContract(Long id);
|
|
/**
|
* 获得员工合同分页
|
*
|
* @param pageReqVO 分页请求
|
* @return 合同分页结果(含员工信息、动态状态)
|
*/
|
PageResult<HrmEmployeeContractRespVO> getContractPage(HrmEmployeeContractPageReqVO pageReqVO);
|
|
/**
|
* 统计即将到期的合同数量(供待办/首页提醒)
|
*
|
* @return 即将到期合同数量
|
*/
|
Long getExpiringCount();
|
|
/**
|
* 批量导入员工合同
|
* <p>
|
* 判定规则:按「员工姓名 + 合同类型 + 合同开始日期」判断是否存在;存在且开启 updateSupport 时覆盖更新该行(保留合同编号),否则新增。
|
*
|
* @param importContracts 导入的合同 Excel 行
|
* @param importReqVO 导入请求(含是否覆盖更新开关)
|
* @return 导入结果(新增/更新成功列表、失败明细)
|
*/
|
HrmEmployeeContractImportRespVO importContractList(List<HrmEmployeeContractImportExcelVO> importContracts,
|
HrmEmployeeContractImportReqVO importReqVO);
|
|
}
|