add module back in
This commit is contained in:
parent
69346646bd
commit
cbc2caa41d
@ -334,6 +334,7 @@ SELECT
|
|||||||
,log.id
|
,log.id
|
||||||
,COALESCE(log.doc->>'tag','') "tag"
|
,COALESCE(log.doc->>'tag','') "tag"
|
||||||
,log.doc->>'message' "comment"
|
,log.doc->>'message' "comment"
|
||||||
|
,log.doc->>'module' module
|
||||||
FROM
|
FROM
|
||||||
basemix b
|
basemix b
|
||||||
CROSS JOIN vscale s
|
CROSS JOIN vscale s
|
||||||
@ -418,10 +419,11 @@ SELECT
|
|||||||
,b.ship_month
|
,b.ship_month
|
||||||
,b.ship_season
|
,b.ship_season
|
||||||
,'replace_version' "version"
|
,'replace_version' "version"
|
||||||
,'replace_source'||' volume' iter
|
,'replace_source'||' price' iter
|
||||||
,log.id
|
,log.id
|
||||||
,COALESCE(log.doc->>'tag','') "tag"
|
,COALESCE(log.doc->>'tag','') "tag"
|
||||||
,log.doc->>'message' "comment"
|
,log.doc->>'message' "comment"
|
||||||
|
,log.doc->>'module' module
|
||||||
FROM
|
FROM
|
||||||
volume b
|
volume b
|
||||||
CROSS JOIN pscale p
|
CROSS JOIN pscale p
|
||||||
|
@ -108,6 +108,7 @@ SELECT
|
|||||||
,null::int logid
|
,null::int logid
|
||||||
,''::text tag
|
,''::text tag
|
||||||
,''::text "comment"
|
,''::text "comment"
|
||||||
|
,''::text module
|
||||||
FROM
|
FROM
|
||||||
rlarp.osmf_dev o
|
rlarp.osmf_dev o
|
||||||
LEFT OUTER JOIN lgdat.cust bc ON
|
LEFT OUTER JOIN lgdat.cust bc ON
|
||||||
|
@ -5,6 +5,7 @@ SELECT
|
|||||||
jsonb_path_query_first(l.doc,'$.scenario.quota_rep_descr')->>0 quota_rep_descr,
|
jsonb_path_query_first(l.doc,'$.scenario.quota_rep_descr')->>0 quota_rep_descr,
|
||||||
to_char((l.doc->>'stamp')::timestamptz,'YYYY-MM-DD HH:MI:SS') "stamp",
|
to_char((l.doc->>'stamp')::timestamptz,'YYYY-MM-DD HH:MI:SS') "stamp",
|
||||||
l.doc->>'tag' "tag",
|
l.doc->>'tag' "tag",
|
||||||
|
l.doc->>'message' "comment",
|
||||||
jsonb_pretty(l.doc) def,
|
jsonb_pretty(l.doc) def,
|
||||||
l.id
|
l.id
|
||||||
FROM
|
FROM
|
||||||
@ -18,6 +19,7 @@ SELECT
|
|||||||
,list.quota_rep_descr
|
,list.quota_rep_descr
|
||||||
,list.stamp
|
,list.stamp
|
||||||
,list.tag
|
,list.tag
|
||||||
|
,list.comment
|
||||||
,list.def
|
,list.def
|
||||||
,list.id
|
,list.id
|
||||||
,to_char(round(sum(value_usd),2),'$999,999,999D00') sales
|
,to_char(round(sum(value_usd),2),'$999,999,999D00') sales
|
||||||
@ -30,6 +32,7 @@ group BY
|
|||||||
,list.quota_rep_descr
|
,list.quota_rep_descr
|
||||||
,list.stamp
|
,list.stamp
|
||||||
,list.tag
|
,list.tag
|
||||||
|
,list.comment
|
||||||
,list.def
|
,list.def
|
||||||
,list.id
|
,list.id
|
||||||
)
|
)
|
||||||
|
@ -334,6 +334,7 @@ SELECT
|
|||||||
,log.id
|
,log.id
|
||||||
,COALESCE(log.doc->>'tag','') "tag"
|
,COALESCE(log.doc->>'tag','') "tag"
|
||||||
,log.doc->>'message' "comment"
|
,log.doc->>'message' "comment"
|
||||||
|
,log.doc->>'module' module
|
||||||
FROM
|
FROM
|
||||||
basemix b
|
basemix b
|
||||||
CROSS JOIN log
|
CROSS JOIN log
|
||||||
|
@ -169,6 +169,7 @@ target AS (select target_increment incr)
|
|||||||
,log.id
|
,log.id
|
||||||
,COALESCE(log.doc->>'tag','') "tag"
|
,COALESCE(log.doc->>'tag','') "tag"
|
||||||
,log.doc->>'message' "comment"
|
,log.doc->>'message' "comment"
|
||||||
|
,log.doc->>'module' module
|
||||||
FROM
|
FROM
|
||||||
basemix b
|
basemix b
|
||||||
CROSS JOIN scale s
|
CROSS JOIN scale s
|
||||||
|
@ -198,6 +198,7 @@ target AS (select incr_qty qincr)
|
|||||||
,log.id
|
,log.id
|
||||||
,COALESCE(log.doc->>'tag','') "tag"
|
,COALESCE(log.doc->>'tag','') "tag"
|
||||||
,log.doc->>'message' "comment"
|
,log.doc->>'message' "comment"
|
||||||
|
,log.doc->>'module' module
|
||||||
FROM
|
FROM
|
||||||
basemix b
|
basemix b
|
||||||
CROSS JOIN scale s
|
CROSS JOIN scale s
|
||||||
|
@ -197,6 +197,7 @@ target AS (select target_vol vincr, target_prc pincr)
|
|||||||
,log.id
|
,log.id
|
||||||
,COALESCE(log.doc->>'tag','') "tag"
|
,COALESCE(log.doc->>'tag','') "tag"
|
||||||
,log.doc->>'message' "comment"
|
,log.doc->>'message' "comment"
|
||||||
|
,log.doc->>'module' module
|
||||||
FROM
|
FROM
|
||||||
basemix b
|
basemix b
|
||||||
CROSS JOIN vscale s
|
CROSS JOIN vscale s
|
||||||
@ -276,6 +277,7 @@ FROM
|
|||||||
,log.id
|
,log.id
|
||||||
,COALESCE(log.doc->>'tag','') "tag"
|
,COALESCE(log.doc->>'tag','') "tag"
|
||||||
,log.doc->>'message' "comment"
|
,log.doc->>'message' "comment"
|
||||||
|
,log.doc->>'module' module
|
||||||
FROM
|
FROM
|
||||||
volume b
|
volume b
|
||||||
CROSS JOIN pscale s
|
CROSS JOIN pscale s
|
||||||
|
Loading…
Reference in New Issue
Block a user