|
|
|
@@ -98,6 +98,13 @@ |
|
|
|
(`starttime` <= #{needPayStartDay} and `receive_pay` - `pay` - IFNULL(`set_off`,'0') > 0 and status not in (3,6,7,9) and bill_type in (13,21,5)) |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test=" null != needPayNoDays"> |
|
|
|
and ( |
|
|
|
( `receive_pay` - `pay` - IFNULL(`set_off`,'0') + IFNULL(`return_pay`,'0') > 0 and status not in (3,6,7,9) and bill_type not in (13,21,5)) |
|
|
|
or |
|
|
|
( `receive_pay` - `pay` - IFNULL(`set_off`,'0') > 0 and status not in (3,6,7,9) and bill_type in (13,21,5)) |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test=" null != toPayMerchant"> |
|
|
|
and ( |
|
|
|
( `receive_pay` - `pay` - IFNULL(`set_off`,'0') + IFNULL(`return_pay`,'0') < 0 and bill_type not in (13,21,5)) |
|
|
|
|