From 6f55da80d19cba61bd23cd302b76bbb23038f7bd Mon Sep 17 00:00:00 2001
From: yyy <1083599556@qq.com>
Date: 星期二, 21 四月 2026 12:03:24 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0' into 1.0
---
xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpCruisePlanController.java | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpCruisePlanController.java b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpCruisePlanController.java
index 288fee2..eb88bf1 100644
--- a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpCruisePlanController.java
+++ b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpCruisePlanController.java
@@ -1,6 +1,7 @@
package com.xiaopeng.operation.controller;
+import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xiaopeng.api.dto.operation.CruisePointDto;
@@ -34,6 +35,7 @@
import org.springframework.web.bind.annotation.RestController;
+import javax.annotation.Resource;
import javax.validation.Valid;
import org.springframework.web.bind.annotation.PathVariable;
@@ -61,6 +63,9 @@
private final IXpCruisePlanPointService xpCruisePlanPointService;
private final XpPointService pointService;
private final XpVehicleClient xpVehicleClient;
+
+ @Resource(name = "hutoolSnowflake")
+ private Snowflake snowflake;
@ApiOperation(value = "获取巡游计划分页列表", tags = {"管理后台-巡游计划"})
@PostMapping(value = {"/api/v1/xp-cruise-plan/pageList"})
@@ -205,6 +210,8 @@
newXpCruiseOrder.setMissionId(plan.getCruisePlanId());
newXpCruiseOrder.setStatus(1);
newXpCruiseOrder.setOrderReverse(1);
+ newXpCruiseOrder.setXpuTaskId(snowflake.nextId() + "");
+
GeoJsonPoint point = dto.getPoint();
// 起点
--
Gitblit v1.7.1