From e61966a89350cf11940d5bd538a5dda06cb6b437 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 03 十二月 2026 17:01:18 +0800
Subject: [PATCH] 完善个税汇总模块删除记录的问题

---
 ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
index 547fc84..f603a7c 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
@@ -307,4 +307,18 @@
         where id = #{id}
     </update>
 
+    <!-- 2026-12-03锛氬垹闄や釜绋庢眹鎬诲崟鏃惰В缁戠敵璇峰崟銆係P_SELECT_EXPERTFEE 鐨勯�夋嫨鏉′欢鏄�
+         istax = 0 涓� fund_tax_id is null锛屾墍浠ヨ繖閲屽繀椤诲悓鏃跺浣嶄袱鍒楋紙骞舵竻绌虹畻绋庢椂闂达級锛�
+         鍙竻 fund_tax_id 浼氳鍗曟嵁姘镐箙鏃犳硶鍐嶈閫夋嫨銆� -->
+    <update id="clearFundTaxRelationByFundTaxIds">
+        update service_fund
+        set fund_tax_id = null,
+            istax = 0,
+            fundtaxtime = null
+        where fund_tax_id in
+        <foreach item="item" index="index" collection="fundTaxIds" open="(" separator="," close=")">
+            #{item}
+        </foreach>
+    </update>
+
 </mapper>

--
Gitblit v1.9.3