|
@@ -137,8 +137,8 @@ public class AttendanceMessageTask {
|
|
|
characterKey = "character_string18";
|
|
characterKey = "character_string18";
|
|
|
//获取最近的时间
|
|
//获取最近的时间
|
|
|
recentlyTime = getRecentlyTime(ruleDetails, now);
|
|
recentlyTime = getRecentlyTime(ruleDetails, now);
|
|
|
- long minute = Math.abs(ChronoUnit.MINUTES.between(now, recentlyTime));
|
|
|
|
|
- if(minute >= 1){
|
|
|
|
|
|
|
+ long seconds = Math.abs(ChronoUnit.SECONDS.between(now, recentlyTime));
|
|
|
|
|
+ if(seconds >= 60){
|
|
|
log.info("未到时间,不进行推送");
|
|
log.info("未到时间,不进行推送");
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
@@ -155,8 +155,8 @@ public class AttendanceMessageTask {
|
|
|
wechatTemplate = weChatUtil.getAttendanceMsgAbsenceTemplate();
|
|
wechatTemplate = weChatUtil.getAttendanceMsgAbsenceTemplate();
|
|
|
recentlyTime = getRecentlyOverTime(ruleDetails, now);
|
|
recentlyTime = getRecentlyOverTime(ruleDetails, now);
|
|
|
characterKey = "character_string36";
|
|
characterKey = "character_string36";
|
|
|
- long minute = Math.abs(ChronoUnit.MINUTES.between(now, recentlyTime));
|
|
|
|
|
- if(minute >= 1){
|
|
|
|
|
|
|
+ long seconds = Math.abs(ChronoUnit.SECONDS.between(now, recentlyTime));
|
|
|
|
|
+ if(seconds >= 60){
|
|
|
log.info("未到时间,不进行推送");
|
|
log.info("未到时间,不进行推送");
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|