| Line 1133... |
Line 1133... |
| 1133 |
LOGGER.info("employeeAttendanceOptional.get().getCreateTimestamp() {}", employeeAttendanceOptional.get().getCreateTimestamp());
|
1133 |
LOGGER.info("employeeAttendanceOptional.get().getCreateTimestamp() {}", employeeAttendanceOptional.get().getCreateTimestamp());
|
| 1134 |
}
|
1134 |
}
|
| 1135 |
}
|
1135 |
}
|
| 1136 |
if (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null
|
1136 |
if (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null
|
| 1137 |
|| employeeAttendanceOptional.get().getCreateTimestamp().isAfter(moriningTime)) {
|
1137 |
|| employeeAttendanceOptional.get().getCreateTimestamp().isAfter(moriningTime)) {
|
| - |
|
1138 |
LOGGER.info("Will Send Email to {}", authUser.getFullName());
|
| 1138 |
String body = String.format(
|
1139 |
String body = String.format(
|
| 1139 |
"Dear %s,\n Pls note that you haven't punched your attendance by 10:30am%s. You have been marked absent for half the day.\n\nRegards\nHR Team",
|
1140 |
"Dear %s,\n Pls note that you haven't punched your attendance by 10:30am%s. You have been marked absent for half the day.\n\nRegards\nHR Team",
|
| 1140 |
authUser.getFullName(), (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null) ? ""
|
1141 |
authUser.getFullName(), (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null) ? ""
|
| 1141 |
: "(Punched at " + FormattingUtils.format(employeeAttendanceOptional.get().getCreateTimestamp()) +")" );
|
1142 |
: "(Punched at " + FormattingUtils.format(employeeAttendanceOptional.get().getCreateTimestamp()) +")" );
|
| 1142 |
/*
|
1143 |
/*
|