Skip to content
Snippets Groups Projects
Commit 37170c76 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

time to export to sql appointmetns added

parent b431e8c8
No related branches found
No related tags found
1 merge request!1Appointments dev
......@@ -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;
}
......
......@@ -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)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment