|
|
|
@@ -85,7 +85,7 @@ |
|
|
|
<if test=" null != payWay ">and `pay_way` = #{payWay}</if> |
|
|
|
<if test=" null != latePayStatus ">and `late_pay_status` = #{latePayStatus}</if> |
|
|
|
<if test=" null != manageFeeType ">and `manage_fee_type` = #{manageFeeType}</if> |
|
|
|
<if test=" 1 == notifyed ">and (`last_owe_call_time` is not null and `receive_pay` - `pay` - `set_off > 0 and status not in (3,6,7) )</if> |
|
|
|
<if test=" 1 == notifyed ">and (`last_owe_call_time` is not null and `receive_pay` - `pay` - `set_off` > 0 and status not in (3,6,7) )</if> |
|
|
|
<if test=" null != merchantIds "> |
|
|
|
and merchant_id in |
|
|
|
<foreach collection="merchantIds" index="index" item="midItem" open="(" separator="," close=")"> |
|
|
|
@@ -145,17 +145,17 @@ |
|
|
|
and date_format(br.starttime,'%Y-%m') <= #{month} and date_format(br.endtime,'%Y-%m') >= #{month} |
|
|
|
</if> |
|
|
|
<if test=" null == nearBillLastTime and null != oweBillLastTime"> |
|
|
|
and (br.`starttime` <= #{oweBillLastTime} and br.`receive_pay` - br.`pay` - br.`set_off > 0 and br.status not in (3,6,7)) |
|
|
|
and (br.`starttime` <= #{oweBillLastTime} and br.`receive_pay` - br.`pay` - br.`set_off` > 0 and br.status not in (3,6,7)) |
|
|
|
</if> |
|
|
|
<if test=" null != nearBillLastTime and null != oweBillLastTime"> |
|
|
|
and (br.`starttime` > #{oweBillLastTime} and br.`starttime` <= #{nearBillLastTime} and br.`receive_pay` - br.`pay` - br.`set_off > 0 and br.status not in (3,6,7)) |
|
|
|
and (br.`starttime` > #{oweBillLastTime} and br.`starttime` <= #{nearBillLastTime} and br.`receive_pay` - br.`pay` - br.`set_off` > 0 and br.status not in (3,6,7)) |
|
|
|
</if> |
|
|
|
<if test=" null != needPayStartDay"> |
|
|
|
and (br.`starttime` <= #{needPayStartDay} and br.`receive_pay` - br.`pay` - br.`set_off > 0 and br.status not in (3,6,7)) |
|
|
|
and (br.`starttime` <= #{needPayStartDay} and br.`receive_pay` - br.`pay` - br.`set_off` > 0 and br.status not in (3,6,7)) |
|
|
|
</if> |
|
|
|
<if test=" null != manageFeeType ">and br.`manage_fee_type` = #{manageFeeType}</if> |
|
|
|
<if test=" null != hasMerchant ">and br.`merchant_id` is not null</if> |
|
|
|
<if test=" 1 == notifyed ">and (br.`last_owe_call_time` is not null and br.`receive_pay` - br.`pay` - br.`set_off > 0 and br.status not in (3,6,7) )</if> |
|
|
|
<if test=" 1 == notifyed ">and (br.`last_owe_call_time` is not null and br.`receive_pay` - br.`pay` - br.`set_off` > 0 and br.status not in (3,6,7) )</if> |
|
|
|
<if test=" null != merchantIds "> |
|
|
|
and br.merchant_id in |
|
|
|
<foreach collection="merchantIds" index="index" item="midItem" open="(" separator="," close=")"> |
|
|
|
|