|
|
|
@ -84,14 +84,6 @@ |
|
|
|
left join admin a2 on cr.audit_id = a2.id |
|
|
|
<where> |
|
|
|
1 = 1 |
|
|
|
/*判断market 是否不为总部且 markets 不为空*/ |
|
|
|
<if test="cashCollection.markets != null and cashCollection.markets.size() > 0"> |
|
|
|
AND ( |
|
|
|
<foreach collection="cashCollection.markets" item="market" open="" close="" separator=" OR "> |
|
|
|
cr.market = #{market} |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="cashCollection.market != null and cashCollection.market != ''"> |
|
|
|
AND cr.market = #{cashCollection.market} |
|
|
|
</if> |
|
|
|
@ -101,18 +93,28 @@ |
|
|
|
<if test="cashCollection.name!=null and cashCollection.name !=''"> |
|
|
|
AND cr.name like concat('%',#{cashCollection.name},'%') |
|
|
|
</if> |
|
|
|
<if test="cashCollection.submitterId!=null and cashCollection.submitterId !=''"> |
|
|
|
AND cr.submitter_id = #{cashCollection.submitterId} |
|
|
|
</if> |
|
|
|
<if test="cashCollection.receivedMarket!=null and cashCollection.receivedMarket!=''"> |
|
|
|
AND cr.received_market = #{cashCollection.receivedMarket} |
|
|
|
</if> |
|
|
|
<if test="cashCollection.activity!=null and cashCollection.activity!=''"> |
|
|
|
AND cr.activity like concat('%',#{cashCollection.activity},'%') |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="cashCollection.goodsName!=null and cashCollection.goodsName!=''"> |
|
|
|
AND cr.goods_name like concat('%',#{cashCollection.goodsName},'%') |
|
|
|
</if> |
|
|
|
<if test="cashCollection.payType!=null and cashCollection.payType!=''"> |
|
|
|
AND cr.pay_type = #{cashCollection.payType} |
|
|
|
</if> |
|
|
|
<if test="cashCollection.status!=null and cashCollection.status!=''"> |
|
|
|
AND cr.status = #{cashCollection.status} |
|
|
|
</if> |
|
|
|
<if test="cashCollection.status != null"> |
|
|
|
AND cr.status IN |
|
|
|
<foreach collection="cashCollection.status.toString().toCharArray()" item="digit" open="(" separator="," close=")"> |
|
|
|
#{digit} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="cashCollection.startTime!=null and cashCollection.endTime!=null"> |
|
|
|
AND cr.pay_time between #{cashCollection.startTime} and #{cashCollection.endTime} |
|
|
|
</if> |
|
|
|
|