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();
|
|
}
|