Mercurial > lada > lada-server
comparison src/main/resources/queryconf.json @ 452:819747a8d037
Changed query id from integer to String. Updated query 1 & 2.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 11 Feb 2015 15:24:52 +0100 |
parents | 83b92b475d9d |
children | c3742f46c8e1 |
comparison
equal
deleted
inserted
replaced
451:89a5dbeb5bd6 | 452:819747a8d037 |
---|---|
1 [ | 1 [ |
2 { "id": 1, | 2 { "id": "1", |
3 "name": "Kein Filter", | 3 "name": "Kein Filter", |
4 "description": "Abfrage der Proben ohne Filter", | 4 "description": "Abfrage der Proben ohne Filter", |
5 "sql": "select probe_id, mst_id, umw_id from l_probe", | 5 "sql": "select pt.probe_id_alt, mst_id, umw_id from probe join probe_translation pt on probe.id = pt.probe_id", |
6 "result": [ | 6 "result": [ |
7 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, | 7 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, |
8 {"dataIndex": "mstId", "header": "MST", "width": 100}, | 8 {"dataIndex": "mstId", "header": "MST", "width": 100}, |
9 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100} | 9 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100} |
10 ], | 10 ], |
11 "filters": [ | 11 "filters": [ |
12 ] | 12 ] |
13 }, | 13 }, |
14 { "id": 2, | 14 { "id": "2", |
15 "name": "MST und UMW", | 15 "name": "MST und UMW", |
16 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs", | 16 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs", |
17 "sql": "select probe_id, mst_id, umw_id from l_probe where (mst_id = :mst_id OR '' = :mst_id) and (umw_id = :umw_id OR '' = :umw_id)", | 17 "sql": "select pt.probe_id_alt, p.mst_id, p.umw_id from probe p join probe_translation pt on p.id = pt.probe_id where (p.mst_id = :mst_id OR '' = :mst_id) and (p.umw_id = :umw_id OR '' = :umw_id)", |
18 "result": [ | 18 "result": [ |
19 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, | 19 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, |
20 {"dataIndex": "mstId", "header": "MST", "width": 100}, | 20 {"dataIndex": "mstId", "header": "MST", "width": 100}, |
21 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100} | 21 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100} |
22 ], | 22 ], |
23 "filters": [ | 23 "filters": [ |
24 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"}, | 24 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"}, |
25 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"} | 25 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"} |
26 ] | 26 ] |
27 }, | 27 }, |
28 { "id": 3, | 28 { "id": "3", |
29 "name": "Proben pro Land", | 29 "name": "Proben pro Land", |
30 "description": "Detailiertere Beschreibung der Abfrage", | 30 "description": "Detailiertere Beschreibung der Abfrage", |
31 "sql": "select probe_id, netzbetreiber_id, mst_id, umw_id, hauptproben_nr from l_probe where (netzbetreiber_id = :netz OR '' = :netz)", | 31 "sql": "select probe_id, netzbetreiber_id, mst_id, umw_id, hauptproben_nr from probe where (netzbetreiber_id = :netz OR '' = :netz)", |
32 "result": [ | 32 "result": [ |
33 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, | 33 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, |
34 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100}, | 34 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100}, |
35 {"dataIndex": "mstId", "header": "MST", "width": 100}, | 35 {"dataIndex": "mstId", "header": "MST", "width": 100}, |
36 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}, | 36 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}, |
38 ], | 38 ], |
39 "filters": [ | 39 "filters": [ |
40 {"dataIndex": "netz", "type": "listnetz", "label": "Land"} | 40 {"dataIndex": "netz", "type": "listnetz", "label": "Land"} |
41 ] | 41 ] |
42 }, | 42 }, |
43 { "id": 4, | 43 { "id": "4", |
44 "name": "alle Proben mit Ort", | 44 "name": "alle Proben mit Ort", |
45 "description": "alle Proben mit Entnahmeort", | 45 "description": "alle Proben mit Entnahmeort", |
46 "sql": "select lp.probe_id, lp.netzbetreiber_id, lp.mst_id, lp.umw_id, lp.hauptproben_nr, ort.gem_id, s_verwaltungseinheit.bezeichnung from l_probe left outer join l_ort on (lp.probe_id = l_ort.probe_id) left outer join ort on (l_ort.ort_id = ort.ort_id) left outer join s_verwaltungseinheit on (ort.gem_id = s_verwaltungseinheit.gem_id) where l_ort.orts_typ = 'E' or l_ort.orts_typ is null", | 46 "sql": "select lp.probe_id, lp.netzbetreiber_id, lp.mst_id, lp.umw_id, lp.hauptproben_nr, ort.gem_id, s_verwaltungseinheit.bezeichnung from probe left outer join l_ort on (lp.probe_id = l_ort.probe_id) left outer join ort on (l_ort.ort_id = ort.ort_id) left outer join s_verwaltungseinheit on (ort.gem_id = s_verwaltungseinheit.gem_id) where l_ort.orts_typ = 'E' or l_ort.orts_typ is null", |
47 "result": [ | 47 "result": [ |
48 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, | 48 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, |
49 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, | 49 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, |
50 {"dataIndex": "mstId", "header": "MST", "width": 60}, | 50 {"dataIndex": "mstId", "header": "MST", "width": 60}, |
51 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}, | 51 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}, |
54 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1} | 54 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1} |
55 ], | 55 ], |
56 "filters": [ | 56 "filters": [ |
57 ] | 57 ] |
58 }, | 58 }, |
59 { "id": 5, | 59 { "id": "5", |
60 "name": "Proben pro Land und UMW (Multiselect)", | 60 "name": "Proben pro Land und UMW (Multiselect)", |
61 "description": "Abfrage aller Proben gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)", | 61 "description": "Abfrage aller Proben gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)", |
62 "sql": "select lp.probe_id, lp.netzbetreiber_id, lp.mst_id, to_char(lp.probeentnahme_beginn,'YYYY-mm-dd HH24:MI') entnahme_von, to_char(lp.probeentnahme_ende,'YYYY-mm-dd HH24:MI') entnahme_bis, lp.umw_id, lp.hauptproben_nr, l_ort.orts_typ, ort.gem_id, s_verwaltungseinheit.bezeichnung from l_probe left outer join l_ort on (lp.probe_id = l_ort.probe_id) left outer join ort on (l_ort.ort_id = ort.ort_id) left outer join s_verwaltungseinheit on (ort.gem_id = s_verwaltungseinheit.gem_id) where (l_ort.orts_typ = 'E' or l_ort.orts_typ is null) and lp.netzbetreiber_id = :netz and (umw_id similar to (:umw_id) OR '' = :umw_id)", | 62 "sql": "select lp.probe_id, lp.netzbetreiber_id, lp.mst_id, to_char(lp.probeentnahme_beginn,'YYYY-mm-dd HH24:MI') entnahme_von, to_char(lp.probeentnahme_ende,'YYYY-mm-dd HH24:MI') entnahme_bis, lp.umw_id, lp.hauptproben_nr, l_ort.orts_typ, ort.gem_id, s_verwaltungseinheit.bezeichnung from probe left outer join l_ort on (lp.probe_id = l_ort.probe_id) left outer join ort on (l_ort.ort_id = ort.ort_id) left outer join s_verwaltungseinheit on (ort.gem_id = s_verwaltungseinheit.gem_id) where (l_ort.orts_typ = 'E' or l_ort.orts_typ is null) and lp.netzbetreiber_id = :netz and (umw_id similar to (:umw_id) OR '' = :umw_id)", |
63 "result": [ | 63 "result": [ |
64 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, | 64 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, |
65 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, | 65 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, |
66 {"dataIndex": "mstId", "header": "MST", "width": 50}, | 66 {"dataIndex": "mstId", "header": "MST", "width": 50}, |
67 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 120}, | 67 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 120}, |