Commit 185a68b9 by 汪志阳

fix:去除模拟时间代码

parent 9d95ce73
...@@ -94,7 +94,7 @@ public class OffBedAlarm implements IAlarm { ...@@ -94,7 +94,7 @@ public class OffBedAlarm implements IAlarm {
return; return;
} }
// 00:00 -> 23:59:59999 // 00:00 -> 23:59:59999
if (LocalTime.MIN.equals(endTime)) { if (endTime.getHour() == 0 && endTime.getMinute() == 0) {
ruleConfig.setOffBedEnd(LocalTime.MAX); ruleConfig.setOffBedEnd(LocalTime.MAX);
} }
log.info("离床预警时间范围,begin:{},end:{}", startTime, endTime); log.info("离床预警时间范围,begin:{},end:{}", startTime, endTime);
...@@ -322,7 +322,7 @@ public class OffBedAlarm implements IAlarm { ...@@ -322,7 +322,7 @@ public class OffBedAlarm implements IAlarm {
} }
private LocalDateTime currentTime() { private LocalDateTime currentTime() {
return LocalDateTime.now().plusHours(7); return LocalDateTime.now().plusHours(6);
// return LocalDateTime.now(); // return LocalDateTime.now();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment