Merge "ASM #527 update revision and shef_qual_code" into asm_14.3.1

Former-commit-id: 43b45e9f53 [formerly 107b64a544] [formerly 43b45e9f53 [formerly 107b64a544] [formerly e33a27684c [formerly 0c54c56efa1306d781d64621ccf7f62b3bf70997]]]
Former-commit-id: e33a27684c
Former-commit-id: ed4e911992 [formerly a0b2051e7e]
Former-commit-id: ce9120be90
This commit is contained in:
Juliya Dynina 2014-05-12 14:01:40 -05:00 committed by Gerrit Code Review
commit 00bab1367a

View file

@ -71,6 +71,7 @@ import com.raytheon.viz.hydrocommon.util.DbUtils;
* May 30 2012 14967 wkwock overload insertRejectedData method
* Feb 22 2013 14676 lbousaidi check when producttime is null
* Mar 25, 2013 1781 mpduff Constrain time series table query with a start time.
* May 12 2014 16705 lbousaidi update revision and shef_qual_code in edit routine.
* </pre>
*
* @author dhladky
@ -1167,6 +1168,8 @@ public class TimeSeriesDataManager extends HydroDataManager {
SqlBuilder sql = new SqlBuilder(tablename);
sql.setSqlType(SqlBuilder.UPDATE);
sql.addDouble("value", data.getValue());
sql.addString("shef_qual_code", "M");
sql.addInt("revision", 1);
sql.addString("postingTime", HydroConstants.DATE_FORMAT.format(now));
if (data.getProductTime() == null) {
sql.addString(