新增提单管理和提单计费页面
This commit is contained in:
@@ -65,6 +65,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<update id="bindPayBillId">
|
||||
update prc_pay_bill_fee f
|
||||
inner join prc_pay_bill b on b.bill_id = f.bill_id
|
||||
set f.pay_bill_id = b.pay_bill_id
|
||||
where (f.pay_bill_id is null or f.pay_bill_id = '')
|
||||
and f.bill_id in
|
||||
<foreach collection="billIds" item="billId" open="(" separator="," close=")">#{billId}</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectBillIdsByLadingFee" resultType="String">
|
||||
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">
|
||||
update prc_pay_bill_fee
|
||||
set is_deleted = '1'
|
||||
|
||||
Reference in New Issue
Block a user