瀏覽代碼

考勤模块调整

dzx 5 月之前
父節點
當前提交
160a830b15
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/main/java/com/xjrsoft/module/job/AttenDanceWarnNoticeTask.java

+ 6 - 6
src/main/java/com/xjrsoft/module/job/AttenDanceWarnNoticeTask.java

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