| | |
| | | //小车忙状态位 |
| | | shuttleProtocol.setDeviceStatus(data.getInteger("deviceStatus")); |
| | | //当前二维码 |
| | | shuttleProtocol.setCurrentCode(data.getString("deviceLocation")); |
| | | shuttleProtocol.setCurrentCode(data.getString("deviceLocation") == null ? "0" : data.getString("deviceLocation")); |
| | | //电池电量 |
| | | shuttleProtocol.setBatteryPower(data.getString("battery")); |
| | | shuttleProtocol.setBatteryPower(data.getString("battery") == null ? "0%" : data.getString("battery")); |
| | | |
| | | |
| | | //是否顶升 |
| | | shuttleProtocol.setHasLift(data.getInteger("palletStatus") == 1 ? true : false); |
| | | //行驶方向 |
| | | shuttleProtocol.setRunDirection(data.getString("direction")); |
| | | shuttleProtocol.setRunDirection(data.getString("direction") == null ? "none" : data.getString("direction")); |
| | | |
| | | ///读取四向穿梭车状态-end |
| | | |