更新UUID到新同步Mapper,删除旧UUID列并优化相关SQL逻辑

This commit is contained in:
wuweihua
2026-11-16 12:44:10 +08:00
parent 03043104bc
commit e34e4f117c
2 changed files with 17 additions and 23 deletions
@@ -257,18 +257,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where prc_income_bill_fee_id = #{oldFeeId}
</update>
<!-- 应付表:正式列 bill_id/order_bill_id;旧 UUID 保留在 *_old -->
<!-- 应付表旧 UUID 列已删;UuidToNew 回写空操作 -->
<update id="updatePayBillOrderId">
update prc_pay_bill
set bill_id = #{newBillId}
where bill_id_old = #{oldBillId}
where 1 = 0
</update>
<update id="updatePayFeeOrderId">
update prc_pay_bill_fee
set bill_id = #{newBillId}
where bill_id_old = #{oldBillId}
where 1 = 0
</update>
<update id="updateArDetailOrderId">
@@ -280,7 +280,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updatePayBillLineOrderId">
update pay_bill_line
set order_bill_id = #{newBillId}
where order_bill_id_old = #{oldBillId}
where 1 = 0
</update>
<!-- bill_id dropped; order_id is the live FK. No-op for legacy sync. -->