yxh
7 小时以前 e61966a89350cf11940d5bd538a5dda06cb6b437
ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
@@ -307,4 +307,18 @@
        where id = #{id}
    </update>
    <!-- 2026-12-03:删除个税汇总单时解绑申请单。SP_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>