应付金额汇率转换为本位币
This commit is contained in:
@@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="bizDate" column="biz_date" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="feeItemName">
|
||||
@@ -192,6 +193,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and statement_line_id is not null
|
||||
</select>
|
||||
|
||||
<select id="selectOpenFees" resultMap="PrcPayBillFeeResult">
|
||||
select f.fee_id, f.bill_id, f.amount, f.currency, b.biz_date
|
||||
from prc_pay_bill_fee f
|
||||
left join prc_order_bill b on b.bill_id = f.bill_id
|
||||
where ifnull(f.is_deleted, '0') = '0'
|
||||
and f.bill_id in
|
||||
<foreach collection="billIds" item="billId" open="(" separator="," close=")">#{billId}</foreach>
|
||||
</select>
|
||||
|
||||
<update id="markCalcDeleted">
|
||||
update prc_pay_bill_fee
|
||||
set is_deleted = '1',
|
||||
|
||||
@@ -138,6 +138,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<foreach collection="billIds" item="billId" open="(" separator="," close=")">#{billId}</foreach>
|
||||
</update>
|
||||
|
||||
<update id="updateCnyPayTotal">
|
||||
update prc_pay_bill
|
||||
set pay_total = #{payTotal},
|
||||
currency = 'CNY',
|
||||
update_time = sysdate()
|
||||
where bill_id = #{billId}
|
||||
</update>
|
||||
|
||||
<update id="markCalcStatus">
|
||||
update prc_pay_bill
|
||||
set pay_calc_status = #{status},
|
||||
|
||||
Reference in New Issue
Block a user