调整应付配置和应付列表订单的费用重算
This commit is contained in:
@@ -123,7 +123,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<foreach collection="billIds" item="billId" open="(" separator="," close=")">#{billId}</foreach>
|
||||
group by bill_id
|
||||
) s on s.bill_id = b.bill_id
|
||||
set b.pay_total = ifnull(s.total, 0),
|
||||
set b.pay_total = round(ifnull(s.total, 0), 2),
|
||||
b.currency = case
|
||||
when not exists (
|
||||
select 1 from prc_pay_bill_fee fx
|
||||
where fx.bill_id = b.bill_id
|
||||
and ifnull(fx.is_deleted, '0') = '0'
|
||||
and upper(ifnull(fx.currency, 'CNY')) not in ('CNY', 'RMB')
|
||||
) then 'CNY'
|
||||
else b.currency
|
||||
end,
|
||||
b.update_time = sysdate()
|
||||
where b.bill_id in
|
||||
<foreach collection="billIds" item="billId" open="(" separator="," close=")">#{billId}</foreach>
|
||||
|
||||
Reference in New Issue
Block a user