|
|
@ -498,9 +498,6 @@ |
|
|
<if test="startTime != null and endTime != null"> |
|
|
<if test="startTime != null and endTime != null"> |
|
|
and crc.`pay_time` BETWEEN #{startTime} AND #{endTime} |
|
|
and crc.`pay_time` BETWEEN #{startTime} AND #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
<if test="payType!= null and payType.length > 0"> |
|
|
|
|
|
AND crc.pay_type like CONCAT('%', #{payType}, '%') |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="orderCode!= null and orderCode.length > 0"> |
|
|
<if test="orderCode!= null and orderCode.length > 0"> |
|
|
AND crc.order_code like CONCAT('%', #{orderCode}, '%') |
|
|
AND crc.order_code like CONCAT('%', #{orderCode}, '%') |
|
|
</if> |
|
|
</if> |
|
|
@ -510,6 +507,13 @@ |
|
|
#{statuses} |
|
|
#{statuses} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="areaPayTypeList != null and areaPayTypeList.size > 0"> |
|
|
|
|
|
AND ( |
|
|
|
|
|
<foreach collection="areaPayTypeList" item="item" separator=" OR "> |
|
|
|
|
|
(crc.received_market = #{item.areaId} AND crc.pay_type = #{item.payType}) |
|
|
|
|
|
</foreach> |
|
|
|
|
|
) |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
UNION ALL |
|
|
UNION ALL |
|
|
|
|
|
|
|
|
@ -531,7 +535,7 @@ |
|
|
NULL as handlingCharge, |
|
|
NULL as handlingCharge, |
|
|
NULL as permanentGold, |
|
|
NULL as permanentGold, |
|
|
NULL as freeGold, |
|
|
NULL as freeGold, |
|
|
NULL as pay_type, |
|
|
|
|
|
|
|
|
crc.pay_type, |
|
|
crr.refund_time as pay_time, |
|
|
crr.refund_time as pay_time, |
|
|
crc.status, |
|
|
crc.status, |
|
|
crr.refund_currency as refundCurrency, |
|
|
crr.refund_currency as refundCurrency, |
|
|
@ -565,12 +569,16 @@ |
|
|
<if test="startTime != null and endTime != null"> |
|
|
<if test="startTime != null and endTime != null"> |
|
|
and crc.`pay_time` BETWEEN #{startTime} AND #{endTime} |
|
|
and crc.`pay_time` BETWEEN #{startTime} AND #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
<if test="payType!= null and payType.length > 0"> |
|
|
|
|
|
AND crc.pay_type like CONCAT('%', #{payType}, '%') |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="orderCode!= null and orderCode.length > 0"> |
|
|
<if test="orderCode!= null and orderCode.length > 0"> |
|
|
AND crc.order_code like CONCAT('%', #{orderCode}, '%') |
|
|
AND crc.order_code like CONCAT('%', #{orderCode}, '%') |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="areaPayTypeList != null and areaPayTypeList.size > 0"> |
|
|
|
|
|
AND ( |
|
|
|
|
|
<foreach collection="areaPayTypeList" item="item" separator=" OR "> |
|
|
|
|
|
(crc.received_market = #{item.areaId} AND crc.pay_type = #{item.payType}) |
|
|
|
|
|
</foreach> |
|
|
|
|
|
) |
|
|
|
|
|
</if> |
|
|
) AS combined_result |
|
|
) AS combined_result |
|
|
ORDER BY |
|
|
ORDER BY |
|
|
id, |
|
|
id, |
|
|
|