From ad971e327c012eaf041a32ce95682619505fb64a Mon Sep 17 00:00:00 2001
From: zhibing.pu <393733352@qq.com>
Date: 星期五, 12 四月 2024 22:38:32 +0800
Subject: [PATCH] 新增加功能

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

diff --git a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java
index 365e2cf..a361f5e 100644
--- a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java
+++ b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java
@@ -10,6 +10,7 @@
 import com.stylefeng.guns.modular.smallLogistics.model.OrderLogisticsSpread;
 import com.stylefeng.guns.modular.smallLogistics.server.IOrderLogisticsService;
 import com.stylefeng.guns.modular.smallLogistics.server.IOrderLogisticsSpreadService;
+import com.stylefeng.guns.modular.specialTrain.model.OrderPrivateCar;
 import com.stylefeng.guns.modular.system.dao.CarMapper;
 import com.stylefeng.guns.modular.system.dao.RegionMapper;
 import com.stylefeng.guns.modular.system.dao.UserInfoMapper;
@@ -1025,4 +1026,25 @@
             System.err.println("预支付数据异常(orderId = "  + id + ")");
         }
     }
+    
+    
+    /**
+     * 处理乘客修改终点
+     * @param orderId
+     * @param status
+     */
+    @Override
+    public void updateEndAddress(Integer orderId, Integer status) {
+        OrderLogistics orderLogistics = this.selectById(orderId);
+        if(2 == status){
+            orderLogistics.setEndLon(Double.valueOf(orderLogistics.getDestinationLon()));
+            orderLogistics.setEndLat(Double.valueOf(orderLogistics.getDestinationLat()));
+            orderLogistics.setEndAddress(orderLogistics.getDestination());
+        }
+        orderLogistics.setDestinationLon("");
+        orderLogistics.setDestination("");
+        orderLogistics.setDestinationLat("");
+        this.updateById(orderLogistics);
+        pushUtil.pushModifyAddress(1, orderLogistics.getUserId(), orderId, 4, status);
+    }
 }

--
Gitblit v1.7.1