From 481d8165f26fc7e37f0e87f6444ac0340bb563a3 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期二, 03 十一月 2026 18:53:22 +0800
Subject: [PATCH] fix: 移植长辉已验证的四类接口 500/体验问题(不含物料颜色字段)

---
 yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/salary/HrmTaxRateConfigController.java |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/salary/HrmTaxRateConfigController.java b/yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/salary/HrmTaxRateConfigController.java
index 8e1323f..c7e3dca 100644
--- a/yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/salary/HrmTaxRateConfigController.java
+++ b/yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/salary/HrmTaxRateConfigController.java
@@ -67,7 +67,6 @@
     @GetMapping("/get")
     @Operation(summary = "鑾峰彇涓◣绋庣巼閰嶇疆")
     @Parameter(name = "id", description = "閰嶇疆ID", required = true)
-    @PreAuthorize("@ss.hasPermission('hrm:tax-rate:query')")
     public CommonResult<HrmTaxRateConfigRespVO> getTaxRateConfig(@RequestParam("id") Long id) {
         HrmTaxRateConfigDO config = taxRateConfigService.getTaxRateConfig(id);
         return success(BeanUtils.toBean(config, HrmTaxRateConfigRespVO.class));
@@ -75,7 +74,6 @@
 
     @GetMapping("/list")
     @Operation(summary = "鑾峰彇涓◣绋庣巼閰嶇疆鍒楄〃")
-    @PreAuthorize("@ss.hasPermission('hrm:tax-rate:query')")
     public CommonResult<List<HrmTaxRateConfigRespVO>> getTaxRateConfigList() {
         List<HrmTaxRateConfigDO> list = taxRateConfigService.getTaxRateConfigList();
         return success(BeanUtils.toBean(list, HrmTaxRateConfigRespVO.class));
@@ -84,7 +82,6 @@
     @GetMapping("/get-effective")
     @Operation(summary = "鑾峰彇鐢熸晥鐨勪釜绋庣◣鐜囬厤缃垪琛紙鎸夌骇鏁版帓搴忥級")
     @Parameter(name = "effectiveDate", description = "鐢熸晥鏃ユ湡", required = true)
-    @PreAuthorize("@ss.hasPermission('hrm:tax-rate:query')")
     public CommonResult<List<HrmTaxRateConfigRespVO>> getEffectiveTaxRateConfigList(
             @RequestParam("effectiveDate") LocalDate effectiveDate) {
         List<HrmTaxRateConfigDO> list = taxRateConfigService.getEffectiveTaxRateConfigList(effectiveDate);
@@ -101,7 +98,7 @@
                         .taxRate(new BigDecimal("3")).quickDeduction(new BigDecimal("0")).status(0).remark("").build()
         );
         // 杈撳嚭
-        ExcelUtils.write(response, "涓◣绋庣巼閰嶇疆瀵煎叆妯℃澘.xls", "涓◣绋庣巼閰嶇疆鍒楄〃",
+        ExcelUtils.writeTemplate(response, "涓◣绋庣巼閰嶇疆瀵煎叆妯℃澘.xls", "涓◣绋庣巼閰嶇疆鍒楄〃",
                 HrmTaxRateConfigImportExcelVO.class, list);
     }
 

--
Gitblit v1.9.3