comparison src/main/resources/queryconf.json @ 573:08084d754073

Updated sql query to fit the requirements of sorting and paging.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 19 Mar 2015 09:28:18 +0100
parents c3742f46c8e1
children 7f5e2e68c765
comparison
equal deleted inserted replaced
572:9dd72a2860b5 573:08084d754073
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 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)", 17 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.mst_id as mstId, p.umw_id as umwId 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 ],
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)