|
|
|
@ -210,11 +210,12 @@ |
|
|
|
AND crc.payment_currency LIKE CONCAT('%', #{paymentCurrency}, '%') |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="goodsNames!= null and goodsNames.size > 0"> |
|
|
|
AND crc.goods_name IN |
|
|
|
<foreach collection="goodsNames" item="goodsNames" open="(" separator="," close=")"> |
|
|
|
#{goodsNames} |
|
|
|
<if test="goodsNames != null and !goodsNames.isEmpty()"> |
|
|
|
AND ( |
|
|
|
<foreach collection="goodsNames" item="name" separator=" OR "> |
|
|
|
crc.goods_name LIKE CONCAT('%', #{name}, '%') |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="payType != null and payType.length()>0"> |
|
|
|
and crc.pay_type = #{payType} |
|
|
|
@ -295,7 +296,7 @@ |
|
|
|
<!-- </foreach>--> |
|
|
|
<!-- </if>--> |
|
|
|
<if test="goodsName!= null and goodsName.length() > 0"> |
|
|
|
and crc.goods_name = #{goodsName} |
|
|
|
and crc.goods_name like CONCAT('%', #{goodsName}, '%') |
|
|
|
</if> |
|
|
|
<if test="payType != null and payType.length()>0"> |
|
|
|
and crc.pay_type = #{payType} |
|
|
|
@ -378,11 +379,12 @@ |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="goodsNames!= null and goodsNames.size > 0"> |
|
|
|
AND crc.goods_name IN |
|
|
|
<foreach collection="goodsNames" item="goodsNames" open="(" separator="," close=")"> |
|
|
|
#{goodsNames} |
|
|
|
<if test="goodsNames != null and !goodsNames.isEmpty()"> |
|
|
|
AND ( |
|
|
|
<foreach collection="goodsNames" item="name" separator=" OR "> |
|
|
|
crc.goods_name LIKE CONCAT('%', #{name}, '%') |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="refundCurrency != null and refundCurrency.length() > 0"> |
|
|
|
AND crr.refund_currency like CONCAT('%', #{refundCurrency}, '%') |
|
|
|
|