From e61966a89350cf11940d5bd538a5dda06cb6b437 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 03 十二月 2026 17:01:18 +0800
Subject: [PATCH] 完善个税汇总模块删除记录的问题
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundtaxController.java | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundtaxController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundtaxController.java
index ca63645..27d9d40 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundtaxController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundtaxController.java
@@ -6,9 +6,11 @@
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.project.domain.ServiceDonateannex;
import com.ruoyi.project.domain.ServiceFund;
import com.ruoyi.project.domain.ServiceFundtax;
import com.ruoyi.project.domain.vo.FundTaxVO;
+import com.ruoyi.project.domain.vo.SpFinancialExpensesFundOut;
import com.ruoyi.project.service.IServiceFundService;
import com.ruoyi.project.service.IServiceFundtaxService;
import io.swagger.annotations.Api;
@@ -41,11 +43,11 @@
* 鏌ヨ涓撳璐圭敤绠楃◣鐢宠涓诲垪琛�
*/
@ApiOperation("鏌ヨ涓撳璐圭敤绠楃◣鐢宠涓诲垪琛�")
- @PreAuthorize("@ss.hasPermi('system:fundtax:list')")
@GetMapping("/list")
public TableDataInfo list(ServiceFundtax serviceFundtax) {
startPage();
List<ServiceFundtax> list = serviceFundtaxService.queryList(serviceFundtax);
+// list.sort(Comparator.comparing(ServiceFundtax::getCreateTime, Comparator.nullsLast(Comparator.reverseOrder())));
return getDataTable(list);
}
//
@@ -53,7 +55,7 @@
// * 瀵煎嚭涓撳璐圭敤绠楃◣鐢宠涓诲垪琛�
// */
// @ApiOperation("瀵煎嚭涓撳璐圭敤绠楃◣鐢宠涓诲垪琛�")
-// @PreAuthorize("@ss.hasPermi('system:fundtax:export')")
+// // @PreAuthorize("@ss.hasPermi('system:fundtax:export')")
// @Log(title = "涓撳璐圭敤绠楃◣鐢宠涓�", businessType = BusinessType.EXPORT)
// @GetMapping("/export")
// public AjaxResult export(ServiceFundtax serviceFundtax) {
@@ -66,7 +68,6 @@
* 鑾峰彇涓撳璐圭敤绠楃◣鐢宠涓昏缁嗕俊鎭�
*/
@ApiOperation("鑾峰彇涓撳璐圭敤绠楃◣鐢宠涓昏缁嗕俊鎭�")
- @PreAuthorize("@ss.hasPermi('system:fundtax:query')")
@GetMapping(value = "/getInfo/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
ServiceFundtax serviceFundtax = serviceFundtaxService.getById(id);
@@ -81,7 +82,6 @@
* 淇敼涓撳璐圭敤绠楃◣鐢宠涓�
*/
@ApiOperation("淇敼涓撳璐圭敤绠楃◣鐢宠涓�")
- @PreAuthorize("@ss.hasPermi('system:fundtax:edit')")
@Log(title = "涓撳璐圭敤绠楃◣鐢宠涓�", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@RepeatSubmit
@@ -91,13 +91,14 @@
/**
* 鍒犻櫎涓撳璐圭敤绠楃◣鐢宠涓�
+ * <p>2026-12-03锛氬垹闄ょ殑鍚屾椂瑙g粦璇ユ壒娆′笅鐨勪笓瀹惰垂鐢宠鍗曪紙istax=0銆乫und_tax_id=null锛夛紝
+ * 鍚﹀垯杩欐壒鍗曟嵁涓嬫鍋氫釜绋庢眹鎬绘椂閫変笉鍒般�傛壒閲忓垹闄や紶鍙備负閫楀彿鍒嗛殧鐨� id銆�
*/
@ApiOperation("鍒犻櫎涓撳璐圭敤绠楃◣鐢宠涓�")
- @PreAuthorize("@ss.hasPermi('system:fundtax:remove')")
@Log(title = "涓撳璐圭敤绠楃◣鐢宠涓�", businessType = BusinessType.DELETE)
- @GetMapping("/remove/{id}")
- public AjaxResult remove(@PathVariable Long id) {
- return toAjax(serviceFundtaxService.removeById(id));
+ @GetMapping("/remove/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids) {
+ return AjaxResult.success(serviceFundtaxService.removeFundtax(ids));
}
@@ -105,7 +106,6 @@
* 鏂板涓撳璐圭敤绠楃◣鐢宠涓�
*/
@ApiOperation("鏂板涓撳璐圭敤绠楃◣鐢宠涓�")
- @PreAuthorize("@ss.hasPermi('system:fundtax:add')")
@Log(title = "涓撳璐圭敤绠楃◣鐢宠涓�", businessType = BusinessType.INSERT)
@PostMapping("/addFundTax")
public AjaxResult addFundTax(@RequestBody ServiceFundtax serviceFundtax) {
--
Gitblit v1.9.3