| | |
| | | import com.xiaopeng.api.model.maintenance.XpTaskRule; |
| | | import com.xiaopeng.api.model.order.XpCruiseOrder; |
| | | import com.xiaopeng.api.model.vehicleConvoy.XpVehicle; |
| | | import com.xiaopeng.api.vo.OrderType; |
| | | import com.xiaopeng.api.vo.automaticPilot.VehiclePosition; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.maintenance.mapper.XpTaskRuleMapper; |
| | |
| | | if(returnCruisePoint!=null){ |
| | | xpCruiseOrderClient.addCruiseOrder(returnCruisePoint.getData()); |
| | | // 下发命令 |
| | | orderMissionClient.pushOrder(new PushOrderDto( xpCruiseOrder.getVehicleVin(),xpCruiseOrder.getId(),null)); |
| | | PushOrderDto pushOrderDto = new PushOrderDto(); |
| | | pushOrderDto.setVin(returnCruisePoint.getData().getVehicleVin()); |
| | | pushOrderDto.setOrderId(returnCruisePoint.getData().getId()); |
| | | pushOrderDto.setStartLatitude(returnCruisePoint.getData().getStartLat()); |
| | | pushOrderDto.setStartLongitude(returnCruisePoint.getData().getStartLon()); |
| | | pushOrderDto.setEndLatitude(returnCruisePoint.getData().getEndLat()); |
| | | pushOrderDto.setEndLongitude(returnCruisePoint.getData().getEndLon()); |
| | | pushOrderDto.setOrderType(OrderType.CRUISE_ORDER); |
| | | pushOrderDto.setStage(2); |
| | | orderMissionClient.pushOrder(pushOrderDto); |
| | | } |
| | | log.info("向车辆[{}]发送收车指令", xpVehicle.getPlateNumber()); |
| | | } |