[Lada-commits] [PATCH 02 of 15] Updated sql query to fit the requirements of sorting and paging
Wald Commits
scm-commit at wald.intevation.org
Mon Mar 23 17:59:54 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1426753698 -3600
# Node ID 08084d754073ed880f46e2aab1d4c796cebb6a2e
# Parent 9dd72a2860b50ead88538dbb4ad7d53dd9624153
Updated sql query to fit the requirements of sorting and paging.
diff -r 9dd72a2860b5 -r 08084d754073 src/main/resources/queryconf.json
--- a/src/main/resources/queryconf.json Thu Mar 19 09:27:49 2015 +0100
+++ b/src/main/resources/queryconf.json Thu Mar 19 09:28:18 2015 +0100
@@ -14,7 +14,7 @@
{ "id": "2",
"name": "MST und UMW",
"description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs",
- "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)",
+ "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)",
"result": [
{"dataIndex": "probeId", "header": "ProbeId", "width": 100},
{"dataIndex": "mstId", "header": "MST", "width": 100},
More information about the Lada-commits
mailing list