Mercurial > lada > lada-server
comparison src/main/resources/queryconf.json @ 560:c3742f46c8e1
Updated queryconf; Added 'probe.id' as result.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 13 Mar 2015 16:46:15 +0100 |
parents | 819747a8d037 |
children | 08084d754073 |
comparison
equal
deleted
inserted
replaced
559:7c1f9409764a | 560:c3742f46c8e1 |
---|---|
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 pt.probe_id_alt, mst_id, umw_id from probe join probe_translation pt on probe.id = pt.probe_id", | 5 "sql": "select p.id, pt.probe_id_alt, p.mst_id, p.umw_id from probe p join probe_translation pt on p.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 ], |
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 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)", | 17 "sql": "select p.id, 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 ], |