@@ -101,7 +101,7 @@ public class AttenDanceWarnNoticeTask {
//获取最近的时间
LocalDateTime recentlyTime = getRecentlyTime(ruleDetailsList, now);
- if(!recentlyTime.isEqual(now)){
+ if(recentlyTime.getHour() != now.getHour() && Math.abs(recentlyTime.getMinute() - now.getMinute()) <= 2){
log.info("未到时间,不进行推送");
return;
}