夏文涛 2 years ago
parent
commit
5913fe3b42
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/main/java/com/template/controller/ScheduleController.java

+ 1 - 3
src/main/java/com/template/controller/ScheduleController.java

@@ -148,15 +148,13 @@ public class ScheduleController {
 
 
                     for (AttendanceRuleListEventByClazzResult.DataItem eventId : eventItems) {
                     for (AttendanceRuleListEventByClazzResult.DataItem eventId : eventItems) {
 
 
-                        //判断考勤是否开始 用考勤事件的开始时间和当前时间判断
+                        //判断考勤是否开始 用考勤事件的开始时间和当前时间判断 考勤规则开始生效了才拉取
                         Date eventStartTime =TimeExchange.StringToDate((TimeExchange.getDate() + " " + eventId.getAttendStartTime() + ":00"), "yyyy-MM-dd HH:mm:ss");
                         Date eventStartTime =TimeExchange.StringToDate((TimeExchange.getDate() + " " + eventId.getAttendStartTime() + ":00"), "yyyy-MM-dd HH:mm:ss");
                         Date nowDate = new Date();
                         Date nowDate = new Date();
                         if(nowDate.compareTo(eventStartTime) < 0){
                         if(nowDate.compareTo(eventStartTime) < 0){
                             continue;
                             continue;
                         }
                         }
 
 
-
-
                         /**
                         /**
                          * 定时获取考勤
                          * 定时获取考勤
                          */
                          */