From 31ce6be2d56798d9509e6d90335999064351f7f3 Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期二, 10 十二月 2024 16:06:26 +0800
Subject: [PATCH] 12.10

---
 DriverNTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/specialTrain/server/impl/OrderPrivateCarServiceImpl.java |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/DriverNTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/specialTrain/server/impl/OrderPrivateCarServiceImpl.java b/DriverNTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/specialTrain/server/impl/OrderPrivateCarServiceImpl.java
index 8aeb8c5..c7f3fd9 100644
--- a/DriverNTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/specialTrain/server/impl/OrderPrivateCarServiceImpl.java
+++ b/DriverNTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/specialTrain/server/impl/OrderPrivateCarServiceImpl.java
@@ -21,6 +21,7 @@
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
+import org.springframework.util.StringUtils;
 
 import javax.annotation.Resource;
 import java.math.BigDecimal;
@@ -278,6 +279,7 @@
     @Override
     public ResultUtil process(Integer orderId, Integer state, Double lon, Double lat, String address) throws Exception {
         OrderPrivateCar orderPrivateCar = this.selectById(orderId);
+        System.err.println("==========="+orderId);
         switch (state){
             case 3://出发前往预约点
                 orderPrivateCar.setState(3);
@@ -305,6 +307,15 @@
                 orderPrivateCar.setGetoffAddress(address);
                 orderPrivateCar.setGetoffTime(new Date());
                 orderPrivateCar.setEndServiceTime(new Date());
+
+//                //设置结束的时候的经纬度
+//                if (orderPrivateCar.getEndLat()!=null){
+//                        orderPrivateCar.setEndLon(lon);
+//                        orderPrivateCar.setEndLat(lat);
+//                        orderPrivateCar.setEndAddress(address);
+//                }
+
+
                 break;
         }
         this.updateById(orderPrivateCar);
@@ -323,6 +334,17 @@
         }).start();
         return ResultUtil.success();
     }
+    @Override
+    public ResultUtil specail(Integer orderId, Double lon, Double lat, String endAddress) throws Exception {
+        OrderPrivateCar orderPrivateCar = this.selectById(orderId);
+                        orderPrivateCar.setEndLon(lon);
+                        orderPrivateCar.setEndLat(lat);
+                        orderPrivateCar.setEndAddress(endAddress);
+
+
+        this.updateById(orderPrivateCar);
+        return ResultUtil.success();
+    }
 
 
 

--
Gitblit v1.7.1