费用重算优化、日志记录、费用调整为逻辑删除

This commit is contained in:
liuminghui
2026-11-16 16:52:33 +08:00
parent 49f24a6b1b
commit f9038c62ac
9 changed files with 342 additions and 180 deletions
@@ -168,9 +168,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and statement_line_id is not null
</select>
<delete id="deleteByBillId" parameterType="Long">
delete from prc_pay_bill_fee
<update id="markCalcDeleted">
update prc_pay_bill_fee
set is_deleted = '1',
deleted_mark = id,
update_by = #{operator},
update_time = sysdate()
where bill_id = #{billId}
and ifnull(is_deleted, '0') = '0'
and statement_line_id is null
and (fee_source is null or fee_source = '' or fee_source = 'CALC')
</delete>
</update>
</mapper>