add aggregator
This commit is contained in:
parent
8c8e8b22e4
commit
e1c30e24a2
7
index.js
7
index.js
@ -133,7 +133,7 @@ server.get('/get_pool', bodyParser.json(), function (req,res) {
|
|||||||
FROM
|
FROM
|
||||||
rlarp.osm_fcpool
|
rlarp.osm_fcpool
|
||||||
WHERE
|
WHERE
|
||||||
quota_rep_descr = $1
|
quota_rep_descr = '13025 - JAMES REGER'
|
||||||
GROUP BY
|
GROUP BY
|
||||||
---------customer info-----------------
|
---------customer info-----------------
|
||||||
bill_cust_descr
|
bill_cust_descr
|
||||||
@ -167,7 +167,10 @@ server.get('/get_pool', bodyParser.json(), function (req,res) {
|
|||||||
,version
|
,version
|
||||||
,iter
|
,iter
|
||||||
)
|
)
|
||||||
SELECT row_to_json(rows) x FROM rows`;
|
SELECT
|
||||||
|
json_agg(row_to_json(rows)) x
|
||||||
|
FROM
|
||||||
|
rows`;
|
||||||
//-----------------replace default quota_rep----------------------------------------------------
|
//-----------------replace default quota_rep----------------------------------------------------
|
||||||
console.log(w);
|
console.log(w);
|
||||||
Postgres.FirstRow(w,args,res)
|
Postgres.FirstRow(w,args,res)
|
||||||
|
Loading…
Reference in New Issue
Block a user