diff --git a/appointment-import/src/main/java/smash/appointment/parse/AppointmentEntry.java b/appointment-import/src/main/java/smash/appointment/parse/AppointmentEntry.java index 9216820c009ccf197dc34502672dd747b2c475d1..2014454211fd50042c0a3483af0afd41cdc080f8 100644 --- a/appointment-import/src/main/java/smash/appointment/parse/AppointmentEntry.java +++ b/appointment-import/src/main/java/smash/appointment/parse/AppointmentEntry.java @@ -17,7 +17,11 @@ public class AppointmentEntry { * @see #time */ public String getTime() { - return time; + if (time == null || time.trim().isEmpty()) { + return "09:00"; + } else { + return time; + } } /** @@ -112,7 +116,7 @@ public class AppointmentEntry { for (AppointmentType type : types) { count += type.getTime(); } - return count+""; + return count + ""; } return duration; } diff --git a/appointment-import/src/main/java/smash/appointment/parse/AppointmentSqlExporter.java b/appointment-import/src/main/java/smash/appointment/parse/AppointmentSqlExporter.java index 821649a550fc287c0659d2cd852c2cc1fad71fe3..54eb1628dfa42483510329e239574a03b76f620d 100644 --- a/appointment-import/src/main/java/smash/appointment/parse/AppointmentSqlExporter.java +++ b/appointment-import/src/main/java/smash/appointment/parse/AppointmentSqlExporter.java @@ -12,7 +12,7 @@ public class AppointmentSqlExporter extends SqlExporter{ result.append("visit_id) "); result.append("values ("); - result.append(getStringVal(appointment.getDay()) + ","); + result.append(getStringVal(appointment.getDay()+" "+appointment.getTime()) + ","); result.append(getStringVal(appointment.getDuration()) + ","); result.append(isFinished+ ","); result.append("(select max(id) from web_visit)");