changeset 820:dcf8c49d2e57 statusworkflow

When editing status, record resulting new entry with current time.
author Tom Gottfried <tom@intevation.de>
date Wed, 09 Dec 2015 16:29:57 +0100
parents cb6598eaa93a
children 487c6d8c9d7b
files src/main/java/de/intevation/lada/rest/StatusService.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/StatusService.java	Tue Dec 08 15:14:25 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/StatusService.java	Wed Dec 09 16:29:57 2015 +0100
@@ -8,6 +8,8 @@
 package de.intevation.lada.rest;
 
 import java.util.List;
+import java.util.Date;
+import java.sql.Timestamp;
 
 import javax.enterprise.context.RequestScoped;
 import javax.inject.Inject;
@@ -328,7 +330,7 @@
         LMessung messung = defaultRepo.getByIdPlain(
             LMessung.class, status.getMessungsId(), "land");
         LStatusProtokoll statusNew = new LStatusProtokoll();
-        statusNew.setDatum(status.getDatum());
+        statusNew.setDatum(new Timestamp(new Date().getTime()));
         statusNew.setErzeuger(status.getErzeuger());
         statusNew.setMessungsId(status.getMessungsId());
         statusNew.setStatusStufe(status.getStatusStufe());
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)