[Lada-commits] [PATCH 1 of 4] Set Messstelle as default for Messlabor in LAF import
Wald Commits
scm-commit at wald.intevation.org
Mon Oct 31 18:10:50 CET 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1477918498 -3600
# Node ID cbd34e6716833a576671fd785b5f42deee8019cf
# Parent 1ef08710aaeb0736483547c7823c6209b9fd66b9
Set Messstelle as default for Messlabor in LAF import.
diff -r 1ef08710aaeb -r cbd34e671683 src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java
--- a/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java Fri Oct 28 21:19:44 2016 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java Mon Oct 31 13:54:58 2016 +0100
@@ -652,6 +652,12 @@
if ("MESSSTELLE".equals(key)) {
probe.setMstId(value.toString());
+
+ /* MESSLABOR is optional in LAF but probe.labor_mst_id is
+ * NOT NULL in the LADA database */
+ if (probe.getLaborMstId() == null) {
+ probe.setLaborMstId(value.toString());
+ }
}
if ("MESSLABOR".equals(key)) {
More information about the Lada-commits
mailing list