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/service/impl/XpPricingServiceImpl.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpPricingServiceImpl.java b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpPricingServiceImpl.java
index 83d4ec8..db4b2e8 100644
--- a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpPricingServiceImpl.java
+++ b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpPricingServiceImpl.java
@@ -1,6 +1,7 @@
 package com.xiaopeng.operation.service.impl;
 
 
+import cn.hutool.core.lang.Snowflake;
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONArray;
 import com.alibaba.fastjson2.JSONObject;
@@ -123,6 +124,9 @@
 
     @Autowired
     private XpPointService xpPointService;
+
+    @Resource(name = "hutoolSnowflake")
+    private Snowflake snowflake;
 
 
     // 自定义线程池用于并行执行任务
@@ -515,6 +519,7 @@
         xpOrder.setEndPointId(dto.getEndPointId());
         xpOrder.setStartPointName(xpPoint.getPointName());
         xpOrder.setEndPointName(endXpPoint.getPointName());
+        xpOrder.setXpuTaskId(snowflake.nextId() + "");
 
         // 当前时段
         String currentTimeSlot = DateUtils.getCurrentTimeSlot();

--
Gitblit v1.7.1