Browse Source

考勤定时

夏文涛 2 years atrás
parent
commit
7bf76b3be4
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/main/java/com/template/controller/ScheduleController.java

+ 9 - 0
src/main/java/com/template/controller/ScheduleController.java

@@ -148,6 +148,15 @@ 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 nowDate = new Date();
+                        if(nowDate.compareTo(eventStartTime) < 0){
+                            continue;
+                        }
+
+
+
                         /**
                         /**
                          * 定时获取考勤
                          * 定时获取考勤
                          */
                          */