|
|
|
|
@ -2,9 +2,8 @@
@@ -2,9 +2,8 @@
|
|
|
|
|
package de.srsoftware.umbrella.time; |
|
|
|
|
|
|
|
|
|
import static de.srsoftware.tools.jdbc.Condition.*; |
|
|
|
|
import static de.srsoftware.tools.jdbc.Query.*; |
|
|
|
|
import static de.srsoftware.tools.jdbc.Query.SelectQuery.ALL; |
|
|
|
|
import static de.srsoftware.tools.jdbc.Query.insertInto; |
|
|
|
|
import static de.srsoftware.tools.jdbc.Query.select; |
|
|
|
|
import static de.srsoftware.umbrella.core.Constants.*; |
|
|
|
|
import static de.srsoftware.umbrella.core.model.Status.OPEN; |
|
|
|
|
import static de.srsoftware.umbrella.core.model.Time.State.Complete; |
|
|
|
|
@ -144,7 +143,10 @@ CREATE TABLE IF NOT EXISTS {0} (
@@ -144,7 +143,10 @@ CREATE TABLE IF NOT EXISTS {0} (
|
|
|
|
|
rs.close(); |
|
|
|
|
return track; |
|
|
|
|
} else { // update
|
|
|
|
|
// TODO: update
|
|
|
|
|
replaceInto(TABLE_TASK_TIMES,ID,USER_ID,SUBJECT,DESCRIPTION,START_TIME,END_TIME,STATE) |
|
|
|
|
.values(track.id(),track.userId(),track.subject(),track.description(),track.startSecond(),track.endSecond(),track.state().code()) |
|
|
|
|
.execute(db).close(); |
|
|
|
|
return track; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|