|
@@ -253,16 +253,19 @@ public class AttenDanceWarnNoticeTask {
|
|
&& ruleDetail.getIsAttendance() != null && ruleDetail.getIsAttendance() == 1){
|
|
&& ruleDetail.getIsAttendance() != null && ruleDetail.getIsAttendance() == 1){
|
|
if(ruleDetail.getAmStartTime() != null){
|
|
if(ruleDetail.getAmStartTime() != null){
|
|
LocalDateTime amStartTime = now.with(ruleDetail.getAmStartTime().toLocalTime());
|
|
LocalDateTime amStartTime = now.with(ruleDetail.getAmStartTime().toLocalTime());
|
|
- result.add(amStartTime);
|
|
|
|
|
|
+ result.add(amStartTime.plusDays(- ruleDetail.getAgoMinutes()));
|
|
|
|
+ result.add(amStartTime.plusDays(ruleDetail.getOverMinutes()));
|
|
}
|
|
}
|
|
if(ruleDetail.getPmStartTime() != null){
|
|
if(ruleDetail.getPmStartTime() != null){
|
|
LocalDateTime pmStartTime = now.with(ruleDetail.getPmStartTime().toLocalTime());
|
|
LocalDateTime pmStartTime = now.with(ruleDetail.getPmStartTime().toLocalTime());
|
|
- result.add(pmStartTime);
|
|
|
|
|
|
+ result.add(pmStartTime.plusDays(- ruleDetail.getAgoMinutes()));
|
|
|
|
+ result.add(pmStartTime.plusDays(ruleDetail.getOverMinutes()));
|
|
}
|
|
}
|
|
|
|
|
|
if(ruleDetail.getEveningStartTime() != null){
|
|
if(ruleDetail.getEveningStartTime() != null){
|
|
LocalDateTime eveningStartTime = now.with(ruleDetail.getEveningStartTime().toLocalTime());
|
|
LocalDateTime eveningStartTime = now.with(ruleDetail.getEveningStartTime().toLocalTime());
|
|
- result.add(eveningStartTime);
|
|
|
|
|
|
+ result.add(eveningStartTime.plusDays(- ruleDetail.getAgoMinutes()));
|
|
|
|
+ result.add(eveningStartTime.plusDays(ruleDetail.getOverMinutes()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|