|
|
|
@ -156,9 +156,9 @@ |
|
|
|
cr.goods_name, |
|
|
|
cr.good_num, |
|
|
|
cr.payment_currency, |
|
|
|
Round((payment_amount) / 100.0, 2) AS freeGold, |
|
|
|
Round((payment_amount) / 100.0, 2) AS PaymentAmount, |
|
|
|
cr.received_currency, |
|
|
|
Round((received_amount) / 100.0, 2) AS freeGold, |
|
|
|
Round((received_amount) / 100.0, 2) AS receivedAmount, |
|
|
|
cr.handling_charge, |
|
|
|
cr.pay_type, |
|
|
|
cr.received_market, |
|
|
|
@ -186,6 +186,8 @@ |
|
|
|
a2.area_finance, |
|
|
|
a2.area_charge, |
|
|
|
a2.head_finance, |
|
|
|
cr.refund_currency, |
|
|
|
cr.refund_amount, |
|
|
|
m.name as marketName |
|
|
|
from cash_record cr |
|
|
|
left join admin a1 on submitter_id = a1.id |
|
|
|
@ -219,12 +221,15 @@ |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="paymentCurrency!= null and paymentCurrency.length() > 0"> |
|
|
|
AND cr.payment_currency = #{paymentCurrency} |
|
|
|
AND cr.payment_currency LIKE CONCAT('%', #{paymentCurrency}, '%') |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="goodsName != null and goodsName.length()>0"> |
|
|
|
and cr.goods_name = #{goodsName} |
|
|
|
</if> |
|
|
|
<if test="goodsNames!= null and goodsNames.size > 0"> |
|
|
|
AND cr.goods_name IN |
|
|
|
<foreach collection="goodsNames" item="goodsNames" open="(" separator="," close=")"> |
|
|
|
#{goodsNames} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="payType != null and payType.length()>0"> |
|
|
|
and cr.pay_type = #{payType} |
|
|
|
</if> |
|
|
|
@ -238,5 +243,13 @@ |
|
|
|
and cr.submitter_id = #{submitterId} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
<choose> |
|
|
|
<when test="sortField != null and sortField.length > 0 or sortOrder != null and sortOrder.length > 0"> |
|
|
|
ORDER BY ${sortField} ${sortOrder} |
|
|
|
</when> |
|
|
|
<otherwise> |
|
|
|
ORDER BY create_time DESC |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
</select> |
|
|
|
</mapper> |