Просмотр исходного кода

update leave

tags/Baseline_30082024_BACKEND_UAT
cyril.tsui 1 год назад
Родитель
Сommit
d4d4b55127
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      src/main/java/com/ffii/tsms/modules/timesheet/service/LeaveService.kt

+ 2
- 2
src/main/java/com/ffii/tsms/modules/timesheet/service/LeaveService.kt Просмотреть файл

@@ -89,9 +89,9 @@ open class LeaveService(
} }


open fun deleteMemberLeaveEntry(staffId: Long, entryId: Long): Map<String, List<LeaveEntry>> { open fun deleteMemberLeaveEntry(staffId: Long, entryId: Long): Map<String, List<LeaveEntry>> {
val currentStaff = staffsService.currentStaff() ?: throw BadRequestException()
// val currentStaff = staffsService.currentStaff() ?: throw BadRequestException()
// Make sure current staff is a team lead // Make sure current staff is a team lead
teamService.getMyTeamForStaff(currentStaff) ?: throw BadRequestException()
// teamService.getMyTeamForStaff(currentStaff) ?: throw BadRequestException()


val memberStaff = staffsService.getStaff(staffId) val memberStaff = staffsService.getStaff(staffId)




Загрузка…
Отмена
Сохранить