| | |
| | | } |
| | | |
| | | StringBuffer buffer = new StringBuffer(); |
| | | buffer.append("【通知】三凯四向库\n");//消息标题 |
| | | buffer.append("【通知】四向库\n");//消息标题 |
| | | |
| | | boolean hasReport = false;//是否有需要报告的数据 |
| | | for (ShuttleSlave slave : slaveProperties.getShuttle()) { |
| | |
| | | continue;//充电中,无需通知 |
| | | } |
| | | |
| | | if (shuttleProtocol.getBatteryPower() == null) { |
| | | continue; |
| | | } |
| | | |
| | | if (Integer.parseInt(shuttleProtocol.getBatteryPower()) < shuttlePowerEarlyValue) { |
| | | buffer.append(shuttleProtocol.getShuttleNo()).append("号小车,电量").append(shuttleProtocol.getBatteryPower()).append(",请注意。\n"); |
| | | hasReport = true; |