tuqin
10 小时以前 89071e0c09188d75c3d537f82204ae19713ac7fe
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
package cn.iocoder.yudao.module.hrm.service.employee.contract;
 
/**
 * 员工合同文档生成 Service
 *
 * 按合同 + 员工数据,套用 Word 模板生成劳动合同 / 劳务合同 docx。
 *
 * @author 超级管理员
 */
public interface ContractDocumentService {
 
    /**
     * 生成合同 docx
     *
     * @param contractId   合同编号
     * @param templateType 模板类型:1-劳动合同(简版) 2-劳动合同(标准) 3-劳务合同
     * @return docx 字节
     */
    byte[] generateDocx(Long contractId, Integer templateType);
 
    /**
     * 生成文件名
     */
    String buildFileName(Long contractId, Integer templateType);
 
}