Add gettext feature (/gettext/<aoid>)
This commit is contained in:
10
aore/templates/postgre/gettext_query.sql
Normal file
10
aore/templates/postgre/gettext_query.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
WITH RECURSIVE r AS (
|
||||
SELECT ao.parentguid, ao.shortname || ' ' || ao.formalname AS fullname
|
||||
FROM "ADDROBJ" AS ao
|
||||
WHERE aoid='{{ aoid }}'
|
||||
UNION
|
||||
SELECT parent.parentguid, parent.shortname || ' ' || parent.formalname || ', ' || r.fullname AS fullname
|
||||
FROM "ADDROBJ" AS parent, r
|
||||
WHERE parent.aoguid = r.parentguid AND actstatus = TRUE AND livestatus = TRUE AND nextid IS NULL
|
||||
)
|
||||
SELECT fullname FROM r WHERE parentguid IS NULL LIMIT 1
|
||||
Reference in New Issue
Block a user