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 | 17 +++++++++++++++++
1 files changed, 17 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 c5115cc..f603a7c 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
@@ -155,6 +155,8 @@
<if test="fundTaxId != null ">and fund_tax_id = #{fundTaxId}</if>
<if test="userno != null and userno != ''">and UserNo = #{userno}</if>
<if test="username != null and username != ''">and UserName like concat('%', #{username}, '%')</if>
+ <!-- 2026-11-10锛氫笟鍔$粍闀跨湅鏈粍锛堢敵璇蜂汉鎵�灞炰笟鍔$粍缂栧彿 = 鐧诲綍浜洪儴闂↖D锛� -->
+ <if test="deptmentno != null and deptmentno != ''">and DeptmentNo = #{deptmentno}</if>
<if test="applytype != null and applytype != ''">and ApplyType = #{applytype}</if>
<if test="deptmentname != null and deptmentname != ''">and DeptmentName like concat('%', #{deptmentname},
'%')
@@ -304,4 +306,19 @@
</set>
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