From bee65698b7020d449024360405a2a3e0f013b073 Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期二, 13 十月 2026 18:33:26 +0800
Subject: [PATCH] feat(hrm): 员工合同「下载合同模板」新增退休返聘合同
---
yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/employee/HrmEmployeeContractController.java | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/employee/HrmEmployeeContractController.java b/yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/employee/HrmEmployeeContractController.java
index ebc01fe..1aef685 100644
--- a/yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/employee/HrmEmployeeContractController.java
+++ b/yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/employee/HrmEmployeeContractController.java
@@ -142,8 +142,8 @@
}
@GetMapping("/download-template")
- @Operation(summary = "涓嬭浇鍚堝悓绌虹櫧妯℃澘", description = "1-鍔冲姩鍚堝悓(绠�鐗�) 2-鍔冲姩鍚堝悓(鏍囧噯) 3-鍔冲姟鍚堝悓")
- @Parameter(name = "type", description = "妯℃澘绫诲瀷锛�1-鍔冲姩鍚堝悓(绠�鐗�) 2-鍔冲姩鍚堝悓(鏍囧噯) 3-鍔冲姟鍚堝悓", required = true)
+ @Operation(summary = "涓嬭浇鍚堝悓绌虹櫧妯℃澘", description = "1-鍔冲姩鍚堝悓(绠�鐗�) 2-鍔冲姩鍚堝悓(鏍囧噯) 3-鍔冲姟鍚堝悓 4-閫�浼戣繑鑱樺悎鍚�")
+ @Parameter(name = "type", description = "妯℃澘绫诲瀷锛�1-鍔冲姩鍚堝悓(绠�鐗�) 2-鍔冲姩鍚堝悓(鏍囧噯) 3-鍔冲姟鍚堝悓 4-閫�浼戣繑鑱樺悎鍚�", required = true)
@PreAuthorize("@ss.hasPermission('hrm:employee-contract:query')")
public void downloadTemplate(@RequestParam("type") Integer type, HttpServletResponse response) throws IOException {
String path;
@@ -161,6 +161,10 @@
path = "template/contract/original/service.doc";
fileName = "鍔冲姟鍚堝悓.doc";
contentType = "application/msword";
+ } else if (type == 4) {
+ path = "template/contract/original/retire.docx";
+ fileName = "閫�浼戣繑鑱樺悎鍚�.docx";
+ contentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
} else {
throw exception(CONTRACT_TEMPLATE_TYPE_NOT_SUPPORT);
}
--
Gitblit v1.9.3