xp-robotaxi-common/xp-common-core/src/main/java/com/xiaopeng/common/core/enums/PushMessageTypeEnum.java
@@ -14,7 +14,8 @@ VEHICLE_LOCATION("VEHICLE_LOCATION"), ORDER_ROUTE("ORDER_ROUTE"), ORDER_UPDATE_PRICE("ORDER_UPDATE_PRICE"), OPEN_TRUNK("OPEN_TRUNK"); OPEN_TRUNK("OPEN_TRUNK"), ORDER_REASSIGN("ORDER_REASSIGN"); @Getter private String desc; xp-robotaxi-maintenance-boot/src/main/resources/i18n/messages_en_US.properties
@@ -4,4 +4,5 @@ vehicle.not.exist=The vehicle does not exist. repair.money.too.long=The maintenance cost cannot exceed 10 characters task.save.error=Failed to obtain the real-time positioning information of the vehicle. Please try again later task.vehicle.not.exist=The report failed and no vehicle information was obtained task.rule.not.config=The vehicle accident task allocation rules have not been configured xp-robotaxi-order-boot/src/main/java/com/xiaopeng/order/service/impl/XpOrderServiceImpl.java
@@ -1088,6 +1088,19 @@ log.info("管理后台改派订单,车辆状态修改1 {}", newVehicle.getPlateNumber()); log.info("已将新车辆状态设为已接单,车辆ID: {}", newVehicleId); //12.向小程序用户推送订单改派通知 Map<String, Object> params = new HashMap<>(); Map<String, Object> content = new HashMap<>(); content.put("orderId", order.getId().toString()); content.put("status", order.getStatus()); params.put("type", PushMessageTypeEnum.ORDER_REASSIGN.getDesc()); params.put("content", com.alibaba.fastjson2.JSONObject.toJSONString(content)); params.put("timestamp", new Date().getTime() + ""); String message = JSONObject.toJSONString(params); SendMessageDTO sendMessageDTO = new SendMessageDTO(); sendMessageDTO.setMessage(message); sendMessageDTO.setAppUserId(String.valueOf(order.getAppUserId())); xpPushMessageClient.sendStatus(sendMessageDTO); } catch (Exception e) { log.error("处理新车辆失败,车辆ID: {},错误: {}", newVehicleId, e.getMessage()); }