| | |
| | | where fundID = #{fundid} |
| | | </update> |
| | | |
| | | <!-- 2026-12-03:删除个税汇总单时,清空该批次明细的算税时间与顺序号, |
| | | 与汇总单页“删除单行”(updateTaxTime 传 null)的行为保持一致。 |
| | | 注意:本语句依赖 service_fund.fund_tax_id,必须在解绑(clearFundTaxRelationByFundTaxIds)之前执行。 --> |
| | | <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, |