|
@@ -144,7 +144,7 @@
|
|
IFNULL(sum(r.debt),0) debt ,
|
|
IFNULL(sum(r.debt),0) debt ,
|
|
(case when (IFNULL(sum(r.debt),0)-IFNULL(max(remaining ),0)) <=0 then 0
|
|
(case when (IFNULL(sum(r.debt),0)-IFNULL(max(remaining ),0)) <=0 then 0
|
|
else (IFNULL(sum(r.debt),0)-IFNULL(max(remaining ),0) )end) as "receivableFee",
|
|
else (IFNULL(sum(r.debt),0)-IFNULL(max(remaining ),0) )end) as "receivableFee",
|
|
- IFNULL(max(remaining),0)-IFNULL(sum(r.debt),0) as "waterFee"
|
|
|
|
|
|
+ IFNULL(max(remaining),0)-IFNULL(sum(r.debt),0) as "waterFee",
|
|
IFNULL(max(remaining),0) as "remaining"
|
|
IFNULL(max(remaining),0) as "remaining"
|
|
from pay_pay_rechargeaccount a
|
|
from pay_pay_rechargeaccount a
|
|
left join pay_pay_receivable r on a.account_id=r.account_id
|
|
left join pay_pay_receivable r on a.account_id=r.account_id
|