|
|
@ -336,7 +336,7 @@ |
|
|
crc.good_num as goodsNum, |
|
|
crc.good_num as goodsNum, |
|
|
crc.num_unit, |
|
|
crc.num_unit, |
|
|
crr.refund_model, |
|
|
crr.refund_model, |
|
|
crr.refund_currency, |
|
|
|
|
|
|
|
|
r.rate_name as refund_currency, |
|
|
crr.refund_amount, |
|
|
crr.refund_amount, |
|
|
crr.refund_channels, |
|
|
crr.refund_channels, |
|
|
crr.refund_voucher, |
|
|
crr.refund_voucher, |
|
|
@ -356,6 +356,7 @@ |
|
|
from cash_record_refund crr |
|
|
from cash_record_refund crr |
|
|
left join cash_record_collection crc on crc.id = crr.related_id |
|
|
left join cash_record_collection crc on crc.id = crr.related_id |
|
|
left join lhl_audit la on la.id = crr.audit_id |
|
|
left join lhl_audit la on la.id = crr.audit_id |
|
|
|
|
|
left join rate r on r.id = crr.refund_currency |
|
|
<where> |
|
|
<where> |
|
|
<if test="status != null"> |
|
|
<if test="status != null"> |
|
|
and crr.status = #{status} |
|
|
and crr.status = #{status} |
|
|
@ -387,7 +388,7 @@ |
|
|
) |
|
|
) |
|
|
</if> |
|
|
</if> |
|
|
<if test="refundCurrency != null and refundCurrency.length() > 0"> |
|
|
<if test="refundCurrency != null and refundCurrency.length() > 0"> |
|
|
AND crr.refund_currency like CONCAT('%', #{refundCurrency}, '%') |
|
|
|
|
|
|
|
|
AND r.rate_name like CONCAT('%', #{refundCurrency}, '%') |
|
|
</if> |
|
|
</if> |
|
|
<if test="refundChannels != null and refundChannels.length()>0"> |
|
|
<if test="refundChannels != null and refundChannels.length()>0"> |
|
|
and crr.refund_channels like CONCAT('%', #{refundChannels}, '%') |
|
|
and crr.refund_channels like CONCAT('%', #{refundChannels}, '%') |
|
|
@ -435,13 +436,14 @@ |
|
|
crr.remark, |
|
|
crr.remark, |
|
|
crr.reject_reason, |
|
|
crr.reject_reason, |
|
|
crr.refund_model, |
|
|
crr.refund_model, |
|
|
crr.refund_currency, |
|
|
|
|
|
|
|
|
r.rate_name as refund_currency, |
|
|
crr.refund_amount, |
|
|
crr.refund_amount, |
|
|
crr.refund_channels, |
|
|
crr.refund_channels, |
|
|
crr.refund_time, |
|
|
crr.refund_time, |
|
|
crr.refund_remark, |
|
|
crr.refund_remark, |
|
|
crr.refund_voucher |
|
|
crr.refund_voucher |
|
|
from cash_record_refund crr |
|
|
from cash_record_refund crr |
|
|
|
|
|
left join rate r on r.id = crr.refund_currency |
|
|
where crr.id = #{id} |
|
|
where crr.id = #{id} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|