| @@ -3,7 +3,7 @@ package com.ffii.tsms.modules.timesheet.web | |||||
| import com.ffii.core.exception.BadRequestException | import com.ffii.core.exception.BadRequestException | ||||
| import com.ffii.tsms.modules.timesheet.entity.LeaveType | import com.ffii.tsms.modules.timesheet.entity.LeaveType | ||||
| import com.ffii.tsms.modules.timesheet.service.LeaveService | import com.ffii.tsms.modules.timesheet.service.LeaveService | ||||
| import com.ffii.tsms.modules.timesheet.service.MailReminderService | |||||
| //import com.ffii.tsms.modules.timesheet.service.MailReminderService | |||||
| import com.ffii.tsms.modules.timesheet.service.TimesheetsService | import com.ffii.tsms.modules.timesheet.service.TimesheetsService | ||||
| import com.ffii.tsms.modules.timesheet.web.models.* | import com.ffii.tsms.modules.timesheet.web.models.* | ||||
| import jakarta.servlet.http.HttpServletRequest | import jakarta.servlet.http.HttpServletRequest | ||||
| @@ -21,7 +21,11 @@ import java.time.format.DateTimeFormatter | |||||
| @RestController | @RestController | ||||
| @RequestMapping("/timesheets") | @RequestMapping("/timesheets") | ||||
| class TimesheetsController(private val timesheetsService: TimesheetsService, private val leaveService: LeaveService, private val mailReminderService: MailReminderService) { | |||||
| class TimesheetsController( | |||||
| private val timesheetsService: TimesheetsService, | |||||
| private val leaveService: LeaveService, | |||||
| // private val mailReminderService: MailReminderService | |||||
| ) { | |||||
| @PostMapping("/save") | @PostMapping("/save") | ||||
| fun newTimesheetEntry(@Valid @RequestBody recordTimesheet: Map<String, List<TimeEntry>>): Map<String, List<TimeEntry>> { | fun newTimesheetEntry(@Valid @RequestBody recordTimesheet: Map<String, List<TimeEntry>>): Map<String, List<TimeEntry>> { | ||||
| val parsedEntries = kotlin.runCatching { | val parsedEntries = kotlin.runCatching { | ||||