|
|
|
@ -16,6 +16,16 @@ |
|
|
|
#{paymentAmount},#{receivedMarket},#{payType},#{payTime}, |
|
|
|
#{status},#{submitterId},#{voucher},#{remark}) |
|
|
|
</insert> |
|
|
|
<!-- <insert id="syncToCashRecord"> |
|
|
|
insert into cash_record(order_type,jwcode,name,market,activity, |
|
|
|
order_code,goods_name,good_num,permanent_gold,free_gold, |
|
|
|
payment_currency,payment_amount,received_market, |
|
|
|
pay_type,pay_time,status,submitter_id, |
|
|
|
voucher,remark) |
|
|
|
values(1,#{jwcode},#{name},#{market},#{activity}, |
|
|
|
#{order_code},#{goods_name},#{good_num},#{permanent} |
|
|
|
) |
|
|
|
</insert>--> |
|
|
|
|
|
|
|
<!--更新订单状态--> |
|
|
|
<update id="updateStatus"> |
|
|
|
@ -68,9 +78,6 @@ |
|
|
|
<if test="cashRecord.paymentAmount != null"> |
|
|
|
payment_amount = #{cashRecord.paymentAmount}, |
|
|
|
</if> |
|
|
|
<if test="cashRecord.bankCode != null and cashRecord.bankCode != ''"> |
|
|
|
bank_code = #{cashRecord.bankCode}, |
|
|
|
</if> |
|
|
|
<!-- 只有 这些字段全部非空才更新状态 --> |
|
|
|
status = CASE |
|
|
|
WHEN |
|
|
|
|