tuqin
16 小时以前 83dea93d02925e162ad88954b7d0ed97dd8a442a
1
2
3
4
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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);
 
}