| | |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.core.CrnThread; |
| | | import com.zy.core.cache.SlaveConnection; |
| | | import com.zy.core.enums.ShuttleProtocolStatusType; |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.model.LedSlave; |
| | | import com.zy.core.model.LiftSlave; |
| | |
| | | if (shuttleProtocol == null) { |
| | | continue; |
| | | } |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | if (shuttleProtocol.getProtocolStatusType().equals(ShuttleProtocolStatusType.OFFLINE)) { |
| | | //设备离线中 |
| | | map.put("deviceNo", shuttleProtocol.getShuttleNo());//设备号-小车号 |
| | | map.put("errorMsg", "设备离线");//异常信息 |
| | | map.put("device", "四向车");//异常信息 |
| | | list.add(map); |
| | | } |
| | | |
| | | if (shuttleProtocol.getErrState() == 1) { |
| | | //故障中 |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("deviceNo", shuttleProtocol.getShuttleNo());//设备号-小车号 |
| | | map.put("errorMsg", shuttleProtocol.getErrCode$());//异常信息 |
| | | map.put("device", "四向车");//异常信息 |