|
@@ -178,6 +178,7 @@
|
|
|
,account.accountnumber
|
|
|
,account.address
|
|
|
,u.name AS "createBy"
|
|
|
+ ,(select customer_name from sc_customer where id=#{customerId}) as "customerName"
|
|
|
from pay_pay_transactiondetails a
|
|
|
left join pay_base_account account on account.id=a.account_id
|
|
|
left join sc_user u on u.id=a.create_by
|
|
@@ -204,7 +205,8 @@
|
|
|
max(amount.reading) as "reading",
|
|
|
min(amount.lastreading) as "lastreading",
|
|
|
max(reced.create_date) as "createDate",
|
|
|
- (select name from sc_user where id=max(reced.create_by)) as "createBy"
|
|
|
+ (select name from sc_user where id=max(reced.create_by)) as "createBy",
|
|
|
+ (select customer_name from sc_customer where id=#{customerId}) as "customerName"
|
|
|
from pay_pay_received reced
|
|
|
left join pay_pay_receivable rece on reced.receivable_id=rece.id
|
|
|
left join pay_amount_waterusedamount amount on amount.id=rece.usedamount_id
|