修改账单ID类型为Long,更新相关服务和Mapper逻辑
This commit is contained in:
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<select id="selectByBillId" parameterType="String" resultMap="PrcPayBillFeeResult">
|
||||
<select id="selectByBillId" parameterType="Long" resultMap="PrcPayBillFeeResult">
|
||||
select fee_id, bill_id, pay_bill_id, fee_type, fee_name, sc_id, fee_level, amount, currency, round_mode, remark,
|
||||
fee_source, source_id, is_deleted, create_time
|
||||
from prc_pay_bill_fee
|
||||
@@ -74,14 +74,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<foreach collection="billIds" item="billId" open="(" separator="," close=")">#{billId}</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectBillIdsByLadingFee" resultType="String">
|
||||
<select id="selectBillIdsByLadingFee" resultType="Long">
|
||||
select distinct bill_id
|
||||
from prc_pay_bill_fee
|
||||
where fee_source = 'LADING'
|
||||
and sc_id = #{feeId}
|
||||
and ifnull(is_deleted, '0') = '0'
|
||||
and bill_id is not null
|
||||
and bill_id != ''
|
||||
</select>
|
||||
|
||||
<update id="markLadingFeeDeleted">
|
||||
@@ -100,7 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<foreach collection="feeIds" item="feeId" open="(" separator="," close=")">#{feeId}</foreach>
|
||||
</update>
|
||||
|
||||
<delete id="deleteByBillId" parameterType="String">
|
||||
<delete id="deleteByBillId" parameterType="Long">
|
||||
delete from prc_pay_bill_fee
|
||||
where bill_id = #{billId}
|
||||
and (fee_source is null or fee_source = '' or fee_source = 'CALC')
|
||||
|
||||
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
from prc_pay_bill
|
||||
</sql>
|
||||
|
||||
<select id="selectByBillId" parameterType="String" resultMap="PrcPayBillResult">
|
||||
<select id="selectByBillId" parameterType="Long" resultMap="PrcPayBillResult">
|
||||
<include refid="selectPrcPayBillVo"/>
|
||||
where bill_id = #{billId}
|
||||
</select>
|
||||
@@ -129,7 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<foreach collection="billIds" item="billId" open="(" separator="," close=")">#{billId}</foreach>
|
||||
</update>
|
||||
|
||||
<delete id="deleteByBillId" parameterType="String">
|
||||
<delete id="deleteByBillId" parameterType="Long">
|
||||
delete from prc_pay_bill where bill_id = #{billId}
|
||||
</delete>
|
||||
</mapper>
|
||||
|
||||
@@ -257,18 +257,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
where prc_income_bill_fee_id = #{oldFeeId}
|
||||
</update>
|
||||
|
||||
<!-- 现网关联表回写 order_id(旧 UUID 列不动) -->
|
||||
<!-- 应付表:正式列 bill_id/order_bill_id;旧 UUID 保留在 *_old -->
|
||||
|
||||
<update id="updatePayBillOrderId">
|
||||
update prc_pay_bill
|
||||
set order_id = #{newBillId}
|
||||
where bill_id = #{oldBillId}
|
||||
set bill_id = #{newBillId}
|
||||
where bill_id_old = #{oldBillId}
|
||||
</update>
|
||||
|
||||
<update id="updatePayFeeOrderId">
|
||||
update prc_pay_bill_fee
|
||||
set order_id = #{newBillId}
|
||||
where bill_id = #{oldBillId}
|
||||
set bill_id = #{newBillId}
|
||||
where bill_id_old = #{oldBillId}
|
||||
</update>
|
||||
|
||||
<update id="updateArDetailOrderId">
|
||||
@@ -279,8 +279,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<update id="updatePayBillLineOrderId">
|
||||
update pay_bill_line
|
||||
set order_id = #{newBillId}
|
||||
where order_bill_id = #{oldBillId}
|
||||
set order_bill_id = #{newBillId}
|
||||
where order_bill_id_old = #{oldBillId}
|
||||
</update>
|
||||
|
||||
<!-- bill_id dropped; order_id is the live FK. No-op for legacy sync. -->
|
||||
|
||||
Reference in New Issue
Block a user