Mercurial > lada > lada-server
changeset 1123:cbd34e671683
Set Messstelle as default for Messlabor in LAF import.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 31 Oct 2016 13:54:58 +0100 |
parents | 1ef08710aaeb |
children | 960248dd98c3 |
files | src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)) {