src/main/java/com/zy/asrs/task/ShuttlePowerEarlyWarning.java
@@ -33,8 +33,9 @@ /** * 小车电量预警检测 => 强制预警 * 每30分钟扫描一次 */ @Scheduled(cron = "1 * * * * ? ") @Scheduled(cron = "0 30 * * * ? ") public synchronized void shuttlePowerEarlyWarning() { Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","dingdingReportUrl")); if (config == null) { @@ -73,6 +74,7 @@ if (shuttleProtocol.getPowerPercent() < shuttlePowerEarlyValue) { buffer.append(shuttleProtocol.getShuttleNo()).append("号小车,电量").append(shuttleProtocol.getPowerPercent$()).append(",请注意。\n"); hasReport = true; } }