|
|
|
@ -452,6 +452,7 @@ |
|
|
|
SELECT |
|
|
|
crc.id, |
|
|
|
crc.jwcode, |
|
|
|
ra.activity_name, |
|
|
|
crc.goods_name, |
|
|
|
crc.remark, |
|
|
|
crc.good_num, |
|
|
|
@ -469,12 +470,15 @@ |
|
|
|
ROUND(crc.free_gold / 100.0, 2) as freeGold, |
|
|
|
crc.pay_type, |
|
|
|
crc.pay_time, |
|
|
|
crc.received_time, |
|
|
|
crc.voucher, |
|
|
|
crc.status, |
|
|
|
NULL as refundCurrency, |
|
|
|
NULL as refundAmount, |
|
|
|
NULL as relatedId, |
|
|
|
0 as isRefundRow |
|
|
|
FROM cash_record_collection crc |
|
|
|
left join recharge_activity ra on ra.id = crc.activity |
|
|
|
WHERE 1=1 |
|
|
|
<if test="jwcode != null"> |
|
|
|
and crc.jwcode = #{jwcode} |
|
|
|
@ -522,6 +526,7 @@ |
|
|
|
SELECT |
|
|
|
crc.id, |
|
|
|
crc.jwcode, |
|
|
|
ra.activity_name, |
|
|
|
crc.goods_name, |
|
|
|
crc.remark, |
|
|
|
crc.good_num, |
|
|
|
@ -540,12 +545,15 @@ |
|
|
|
crc.pay_type, |
|
|
|
crr.refund_time as pay_time, |
|
|
|
crc.status, |
|
|
|
crc.received_time, |
|
|
|
crc.voucher, |
|
|
|
crr.refund_currency as refundCurrency, |
|
|
|
ROUND(crr.refund_amount / 100.0, 2) as refundAmount, |
|
|
|
crr.related_id as relatedId, |
|
|
|
1 as isRefundRow |
|
|
|
FROM cash_record_refund crr |
|
|
|
INNER JOIN cash_record_collection crc ON crr.related_id = crc.id |
|
|
|
left join recharge_activity ra on ra.id = crc.activity |
|
|
|
WHERE crc.status =6 and crr.status =41 |
|
|
|
<if test="jwcode != null"> |
|
|
|
and crc.jwcode = #{jwcode} |
|
|
|
|