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/ServiceFunddetailMapper.xml | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceFunddetailMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceFunddetailMapper.xml
index 4e7286f..264d4e2 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceFunddetailMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceFunddetailMapper.xml
@@ -291,6 +291,20 @@
where fundID = #{fundid}
</update>
+ <!-- 2026-12-03锛氬垹闄や釜绋庢眹鎬诲崟鏃讹紝娓呯┖璇ユ壒娆℃槑缁嗙殑绠楃◣鏃堕棿涓庨『搴忓彿锛�
+ 涓庢眹鎬诲崟椤碘�滃垹闄ゅ崟琛屸�濓紙updateTaxTime 浼� null锛夌殑琛屼负淇濇寔涓�鑷淬��
+ 娉ㄦ剰锛氭湰璇彞渚濊禆 service_fund.fund_tax_id锛屽繀椤诲湪瑙g粦锛坈learFundTaxRelationByFundTaxIds锛変箣鍓嶆墽琛屻�� -->
+ <update id="clearTaxTimeByFundTaxIds">
+ update service_funddetail d
+ join service_fund f on d.FundID = f.id
+ set d.tax_time = null,
+ d.xh = null
+ where f.fund_tax_id in
+ <foreach item="item" index="index" collection="fundTaxIds" open="(" separator="," close=")">
+ #{item}
+ </foreach>
+ </update>
+
<select id="getTaxSum" parameterType="com.ruoyi.project.domain.vo.TaxMoneyByItemEO"
resultType="com.ruoyi.project.domain.vo.TaxMoneySumEO">
SELECT sum(a.Amount) amounts,
--
Gitblit v1.9.3