|
@@ -160,7 +160,7 @@ public class AttendanceMessageTask {
|
|
|
characterKey = "character_string18";
|
|
|
//获取最近的时间
|
|
|
recentlyTime = getRecentlyTime(ruleDetails, now);
|
|
|
- if(recentlyTime.getHour() != now.getHour() && recentlyTime.getMinute() != now.getMinute()){
|
|
|
+ if(!recentlyTime.isEqual(now)){
|
|
|
log.info("未到时间,不需要提醒");
|
|
|
continue;
|
|
|
}
|
|
@@ -168,7 +168,7 @@ public class AttendanceMessageTask {
|
|
|
wechatTemplate = weChatUtil.getAttendanceMsgAbsenceTemplate();
|
|
|
recentlyTime = getRecentlyOverTime(ruleDetails, now);
|
|
|
characterKey = "character_string36";
|
|
|
- if(recentlyTime.getHour() != now.getHour() && recentlyTime.getMinute() != now.getMinute()){
|
|
|
+ if(!recentlyTime.isEqual(now)){
|
|
|
log.info("未到时间,不需要提醒");
|
|
|
continue;
|
|
|
}
|