| | |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.common.utils.RedisUtil; |
| | | 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.ShuttleSlave; |
| | |
| | | map.put("errorMsg", errName);//异常信息 |
| | | map.put("device", "四向车");//异常信息 |
| | | list.add(map); |
| | | } else if (shuttleProtocol.getMode() != 1) { |
| | | map.put("deviceNo", shuttleProtocol.getShuttleNo());//设备号-小车号 |
| | | map.put("errorMsg", shuttleProtocol.getMode$());//异常信息 |
| | | map.put("device", "四向车");//异常信息 |
| | | list.add(map); |
| | | } else if (shuttleProtocol.getProtocolStatusType() != ShuttleProtocolStatusType.IDLE) { |
| | | map.put("deviceNo", shuttleProtocol.getShuttleNo());//设备号-小车号 |
| | | map.put("errorMsg", shuttleProtocol.getProtocolStatus$());//异常信息 |
| | | map.put("device", "四向车");//异常信息 |
| | | list.add(map); |
| | | } |
| | | } |
| | | return R.ok().add(list); |