| | |
| | | R<XpVehicle> xpVehicleR = xpVehicleClient.queryById(order.getVehicleId()); |
| | | XpVehicle xpVehicle = xpVehicleR.getData(); |
| | | //还原车辆状态为空闲 |
| | | xpVehicleClient.updateVehicleStatus(new UpdateVehicleStateDto(xpVehicle.getVehicleVin(), 0)); |
| | | if(1 == xpVehicle.getState()){ |
| | | xpVehicle.setState(0); |
| | | xpVehicleClient.updateVehicleById(xpVehicle); |
| | | } |
| | | |
| | | PushOrderDto pushOrderDto = new PushOrderDto(); |
| | | pushOrderDto.setOrderId(order.getId().toString()); |
| | |
| | | } |
| | | |
| | | //还原车辆状态 |
| | | xpVehicleClient.updateVehicleStatus(new UpdateVehicleStateDto(xpVehicle.getVehicleVin(), 0)); |
| | | if(1 == xpVehicle.getState()){ |
| | | xpVehicle.setState(0); |
| | | xpVehicleClient.updateVehicleById(xpVehicle); |
| | | } |
| | | |
| | | // 下发命令 |
| | | PushOrderDto pushOrderDto = new PushOrderDto(); |
| | |
| | | |
| | | //还原车辆状态 |
| | | if (1 == xpVehicle.getState()) { |
| | | xpVehicleClient.updateVehicleStatus(new UpdateVehicleStateDto(xpVehicle.getVehicleVin(), 0)); |
| | | xpVehicle.setState(0); |
| | | xpVehicleClient.updateVehicleById(xpVehicle); |
| | | } |
| | | |
| | | //下发XPU报文 |