|
|
@ -12,7 +12,7 @@ |
|
|
pay_type,pay_time,status,submitter_id,submitter_market, |
|
|
pay_type,pay_time,status,submitter_id,submitter_market, |
|
|
voucher,remark) |
|
|
voucher,remark) |
|
|
values(#{orderType},#{jwcode},#{name},#{market},#{activity}, |
|
|
values(#{orderType},#{jwcode},#{name},#{market},#{activity}, |
|
|
#{orderCode},#{goodsName},#{goodNum},#{NumUnit},#{permanentGold},#{freeGold},#{paymentCurrency}, |
|
|
|
|
|
|
|
|
#{orderCode},#{goodsName},#{goodNum},#{numUnit},#{permanentGold},#{freeGold},#{paymentCurrency}, |
|
|
#{paymentAmount},#{receivedMarket},#{payType},#{payTime}, |
|
|
#{paymentAmount},#{receivedMarket},#{payType},#{payTime}, |
|
|
#{status},#{submitterId},#{submitterMarket},#{voucher},#{remark}) |
|
|
#{status},#{submitterId},#{submitterMarket},#{voucher},#{remark}) |
|
|
</insert> |
|
|
</insert> |
|
|
@ -43,10 +43,9 @@ |
|
|
activity = #{cashRecordCollection.activity}, |
|
|
activity = #{cashRecordCollection.activity}, |
|
|
goods_name = #{cashRecordCollection.goodsName}, |
|
|
goods_name = #{cashRecordCollection.goodsName}, |
|
|
good_num = #{cashRecordCollection.goodNum}, |
|
|
good_num = #{cashRecordCollection.goodNum}, |
|
|
num_unit = #{cashRecordCollection.NumUnit}, |
|
|
|
|
|
|
|
|
num_unit = #{cashRecordCollection.numUnit}, |
|
|
permanent_gold = #{cashRecordCollection.permanentGold}, |
|
|
permanent_gold = #{cashRecordCollection.permanentGold}, |
|
|
free_gold = #{cashRecordCollection.freeGold}, |
|
|
free_gold = #{cashRecordCollection.freeGold}, |
|
|
Num_unit = #{cashRecordCollection.NumUnit}, |
|
|
|
|
|
payment_currency = #{cashRecordCollection.paymentCurrency}, |
|
|
payment_currency = #{cashRecordCollection.paymentCurrency}, |
|
|
payment_amount = #{cashRecordCollection.paymentAmount}, |
|
|
payment_amount = #{cashRecordCollection.paymentAmount}, |
|
|
received_market = #{cashRecordCollection.receivedMarket}, |
|
|
received_market = #{cashRecordCollection.receivedMarket}, |
|
|
@ -63,23 +62,23 @@ |
|
|
<update id="complete"> |
|
|
<update id="complete"> |
|
|
UPDATE cash_record_collection |
|
|
UPDATE cash_record_collection |
|
|
<set> |
|
|
<set> |
|
|
<if test="cashRecord.handlingCharge != null "> |
|
|
|
|
|
|
|
|
<if test="cashRecordCollection.handlingCharge != null "> |
|
|
handling_charge = #{cashRecordCollection.handlingCharge}, |
|
|
handling_charge = #{cashRecordCollection.handlingCharge}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="cashRecord.receivedCurrency != null and cashRecord.receivedCurrency != ''"> |
|
|
|
|
|
|
|
|
<if test="cashRecordCollection.receivedCurrency != null and cashRecordCollection.receivedCurrency != ''"> |
|
|
received_currency = #{cashRecordCollection.receivedCurrency}, |
|
|
received_currency = #{cashRecordCollection.receivedCurrency}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="cashRecord.receivedAmount != null and cashRecord.receivedAmount != ''"> |
|
|
|
|
|
|
|
|
<if test="cashRecordCollection.receivedAmount != null and cashRecordCollection.receivedAmount != ''"> |
|
|
received_amount = #{cashRecordCollection.receivedAmount}, |
|
|
received_amount = #{cashRecordCollection.receivedAmount}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="cashRecord.receivedTime != null"> |
|
|
|
|
|
|
|
|
<if test="cashRecordCollection.receivedTime != null"> |
|
|
received_time = #{cashRecordCollection.receivedTime}, |
|
|
received_time = #{cashRecordCollection.receivedTime}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="cashRecord.paymentCurrency != null and cashRecord.paymentCurrency != ''"> |
|
|
|
|
|
|
|
|
<if test="cashRecordCollection.paymentCurrency != null and cashRecordCollection.paymentCurrency != ''"> |
|
|
payment_currency = #{cashRecordCollection.paymentCurrency}, |
|
|
payment_currency = #{cashRecordCollection.paymentCurrency}, |
|
|
</if> |
|
|
</if> |
|
|
<!-- 关键:null 就不拼这一列 --> |
|
|
<!-- 关键:null 就不拼这一列 --> |
|
|
<if test="cashRecord.paymentAmount != null"> |
|
|
|
|
|
|
|
|
<if test="cashRecordCollection.paymentAmount != null"> |
|
|
payment_amount = #{cashRecordCollection.paymentAmount}, |
|
|
payment_amount = #{cashRecordCollection.paymentAmount}, |
|
|
</if> |
|
|
</if> |
|
|
<!-- 只有 这些字段全部非空才更新状态 --> |
|
|
<!-- 只有 这些字段全部非空才更新状态 --> |
|
|
@ -111,7 +110,7 @@ |
|
|
<!--根据订单号获取订单id与状态--> |
|
|
<!--根据订单号获取订单id与状态--> |
|
|
<select id="selectByOrderCode" resultType="com.example.demo.domain.entity.CashRecord"> |
|
|
<select id="selectByOrderCode" resultType="com.example.demo.domain.entity.CashRecord"> |
|
|
select id ,status |
|
|
select id ,status |
|
|
from cash_record |
|
|
|
|
|
|
|
|
from cash_record_collection |
|
|
where order_code=#{orderCode} |
|
|
where order_code=#{orderCode} |
|
|
</select> |
|
|
</select> |
|
|
<!--多条件查询收款订单列表--> |
|
|
<!--多条件查询收款订单列表--> |
|
|
@ -218,7 +217,7 @@ |
|
|
payment_currency,payment_amount,pay_type,pay_time,crc.status,submitter_id, |
|
|
payment_currency,payment_amount,pay_type,pay_time,crc.status,submitter_id, |
|
|
voucher,remark |
|
|
voucher,remark |
|
|
from cash_record_collection crc |
|
|
from cash_record_collection crc |
|
|
left join recharge_activity ra on ra.id = cash_record.activity |
|
|
|
|
|
|
|
|
left join recharge_activity ra on ra.id = crc.activity |
|
|
where order_code=#{orderCode} |
|
|
where order_code=#{orderCode} |
|
|
</select> |
|
|
</select> |
|
|
<!--根据精网号获取姓名--> |
|
|
<!--根据精网号获取姓名--> |
|
|
|