|
|
|
@ -147,8 +147,8 @@ |
|
|
|
AND cr.submitter_id = #{cashCollection.submitterId} |
|
|
|
</if> |
|
|
|
<!-- 其他原有条件不变 --> |
|
|
|
<!-- <choose> |
|
|
|
<when test="cashCollection.status != null and cashCollection.status == 4"> |
|
|
|
<choose> |
|
|
|
<when test="cashCollection.status != null and cashCollection.status == 46"> |
|
|
|
<if test="cashCollection.receivedMarket != null and cashCollection.receivedMarket != ''"> |
|
|
|
AND (cr.received_market = #{cashCollection.receivedMarket} |
|
|
|
<if test="cashCollection.submitterMarket != null and cashCollection.submitterMarket != ''"> |
|
|
|
@ -162,16 +162,16 @@ |
|
|
|
</if> |
|
|
|
</when> |
|
|
|
|
|
|
|
<!– 非 status=4 保持原逻辑:同时满足 –> |
|
|
|
<otherwise>--> |
|
|
|
<!-- 非 status=46 保持原逻辑:同时满足 --> |
|
|
|
<otherwise> |
|
|
|
<if test="cashCollection.receivedMarket != null and cashCollection.receivedMarket != ''"> |
|
|
|
AND cr.received_market = #{cashCollection.receivedMarket} |
|
|
|
</if> |
|
|
|
<if test="cashCollection.submitterMarket != null and cashCollection.submitterMarket != ''"> |
|
|
|
AND cr.submitter_market = #{cashCollection.submitterMarket} |
|
|
|
</if> |
|
|
|
<!-- </otherwise> |
|
|
|
</choose>--> |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
<if test="cashCollection.activity!=null and cashCollection.activity!=''"> |
|
|
|
AND cr.activity like concat('%',#{cashCollection.activity},'%') |
|
|
|
</if> |
|
|
|
|