Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #553 from egovernments/PFM-4518
Browse files Browse the repository at this point in the history
Changed query.
  • Loading branch information
rahuldevgarg authored Sep 8, 2023
2 parents dc20c67 + d0f799e commit 5bbe50c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ public class WsQueryBuilder {
+ " conn.connectionno as connectionNo,conn.oldConnectionno as oldConnectionNo,"
+ " connectionholder.userid as uuid, SUM(pd.amountpaid) as totalAmountPaid,"
+ " pay.paymentmode as paymentmode FROM eg_ws_connection conn "
+ INNER_JOIN_STRING + "eg_ws_connectionholder connectionholder ON connectionholder.connectionid = conn.id "
+ INNER_JOIN_STRING + " eg_ws_connectionholder connectionholder ON connectionholder.connectionid = conn.id "
+ INNER_JOIN_STRING + " egbs_billdetail_v1 bd on bd.consumercode = conn.connectionno "
+ INNER_JOIN_STRING + " egcl_paymentdetail pd on pd.billid = bd.billid"
+ INNER_JOIN_STRING + " egcl_paymentdetail pd on pd.billid = bd.billid "
+ INNER_JOIN_STRING + " egcl_payment pay on pay.id = pd.paymentid WHERE conn.status = 'Active' "
+ " AND pay.transactiondate BETWEEN ? AND ? AND conn.tenantId = ? "
+ " AND pay.paymentstatus!='CANCELLED' GROUP BY conn.tenantId,conn.connectionno,conn.oldConnectionno,"
Expand Down

0 comments on commit 5bbe50c

Please sign in to comment.