2026-08-10 9fceeaad9af96bc58ba714560814c6e94f8af406
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
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.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;
 
/**
 * 员工合同 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();
 
}