From ddf438536267b9c9bb77369cdccce4e67206842a Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期二, 28 十月 2025 15:29:45 +0800
Subject: [PATCH] 完成支付宝国际版支付对接

---
 ManagementGOPOSTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TReassignController.java |  232 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 116 insertions(+), 116 deletions(-)

diff --git a/ManagementGOPOSTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TReassignController.java b/ManagementGOPOSTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TReassignController.java
index f4d3d87..283d491 100644
--- a/ManagementGOPOSTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TReassignController.java
+++ b/ManagementGOPOSTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TReassignController.java
@@ -721,64 +721,64 @@
                 car.setVehicleId(UUIDUtil.getRandomCode());
                 carService.updateById(car);
             }
-            String vehicles = fleetEngineUtil.getVehicles(car.getVehicleId());
-            if(ToolUtil.isEmpty(vehicles)){
-                TCarModel carModel = carModelMapper.selectById(car.getCarModelId());
-                boolean createVehicles = fleetEngineUtil.createVehicles(carModel.getSeat() - 1, car.getCarLicensePlate(), car.getVehicleId());
-                if(!createVehicles){
-                    for (int i = 0; i < 5; i++) {
-                        createVehicles = fleetEngineUtil.createVehicles(carModel.getSeat() - 1, car.getCarLicensePlate(), car.getVehicleId());
-                        if(createVehicles){
-                            break;
-                        }
-                        try {
-                            Thread.sleep(3000L);
-                        } catch (InterruptedException e) {
-                            throw new RuntimeException(e);
-                        }
-                    }
-                }
-            }
-    
-            //修改google订单信息或者创建新的行程
-            String trip = fleetEngineUtil.getTrip(orderPrivateCar.getTripId());
-            if(ToolUtil.isEmpty(trip)){
-                JSONObject createTrip = fleetEngineUtil.createTrip(car.getVehicleId(), 1, orderPrivateCar.getTripId(),
-                        orderPrivateCar.getStartLat().toString(), orderPrivateCar.getStartLon().toString(),  orderPrivateCar.getEndLat().toString(), orderPrivateCar.getEndLon().toString());
-                JSONObject error = createTrip.getJSONObject("error");
-                if(null != error){
-                    for (int i = 0; i < 5; i++) {
-                        createTrip = fleetEngineUtil.createTrip(car.getVehicleId(), 1, orderPrivateCar.getTripId(),
-                                orderPrivateCar.getStartLat().toString(), orderPrivateCar.getStartLon().toString(),  orderPrivateCar.getEndLat().toString(), orderPrivateCar.getEndLon().toString());
-                        error = createTrip.getJSONObject("error");
-                        String tripStatus = createTrip.getString("tripStatus");
-                        if(null == error && "NEW".equals(tripStatus)){
-                            break;
-                        }
-                        try {
-                            Thread.sleep(3000L);
-                        } catch (InterruptedException e) {
-                            throw new RuntimeException(e);
-                        }
-                    }
-                }
-            }else{
-                //开始修改行程数据
-                boolean updateTrip = fleetEngineUtil.updateTrip(null, car.getVehicleId(), null, orderPrivateCar.getTripId(), null, null, null, null, orderPrivateCar.getId(), 1);
-                if(!updateTrip){
-                    for (int i = 0; i < 5; i++) {
-                        updateTrip = fleetEngineUtil.updateTrip(null, car.getVehicleId(), null, orderPrivateCar.getTripId(), null, null, null, null, orderPrivateCar.getId(), 1);
-                        if(updateTrip){
-                            break;
-                        }
-                        try {
-                            Thread.sleep(3000L);
-                        } catch (InterruptedException e) {
-                            throw new RuntimeException(e);
-                        }
-                    }
-                }
-            }
+//            String vehicles = fleetEngineUtil.getVehicles(car.getVehicleId());
+//            if(ToolUtil.isEmpty(vehicles)){
+//                TCarModel carModel = carModelMapper.selectById(car.getCarModelId());
+//                boolean createVehicles = fleetEngineUtil.createVehicles(carModel.getSeat() - 1, car.getCarLicensePlate(), car.getVehicleId());
+//                if(!createVehicles){
+//                    for (int i = 0; i < 5; i++) {
+//                        createVehicles = fleetEngineUtil.createVehicles(carModel.getSeat() - 1, car.getCarLicensePlate(), car.getVehicleId());
+//                        if(createVehicles){
+//                            break;
+//                        }
+//                        try {
+//                            Thread.sleep(3000L);
+//                        } catch (InterruptedException e) {
+//                            throw new RuntimeException(e);
+//                        }
+//                    }
+//                }
+//            }
+//
+//            //修改google订单信息或者创建新的行程
+//            String trip = fleetEngineUtil.getTrip(orderPrivateCar.getTripId());
+//            if(ToolUtil.isEmpty(trip)){
+//                JSONObject createTrip = fleetEngineUtil.createTrip(car.getVehicleId(), 1, orderPrivateCar.getTripId(),
+//                        orderPrivateCar.getStartLat().toString(), orderPrivateCar.getStartLon().toString(),  orderPrivateCar.getEndLat().toString(), orderPrivateCar.getEndLon().toString());
+//                JSONObject error = createTrip.getJSONObject("error");
+//                if(null != error){
+//                    for (int i = 0; i < 5; i++) {
+//                        createTrip = fleetEngineUtil.createTrip(car.getVehicleId(), 1, orderPrivateCar.getTripId(),
+//                                orderPrivateCar.getStartLat().toString(), orderPrivateCar.getStartLon().toString(),  orderPrivateCar.getEndLat().toString(), orderPrivateCar.getEndLon().toString());
+//                        error = createTrip.getJSONObject("error");
+//                        String tripStatus = createTrip.getString("tripStatus");
+//                        if(null == error && "NEW".equals(tripStatus)){
+//                            break;
+//                        }
+//                        try {
+//                            Thread.sleep(3000L);
+//                        } catch (InterruptedException e) {
+//                            throw new RuntimeException(e);
+//                        }
+//                    }
+//                }
+//            }else{
+//                //开始修改行程数据
+//                boolean updateTrip = fleetEngineUtil.updateTrip(null, car.getVehicleId(), null, orderPrivateCar.getTripId(), null, null, null, null, orderPrivateCar.getId(), 1);
+//                if(!updateTrip){
+//                    for (int i = 0; i < 5; i++) {
+//                        updateTrip = fleetEngineUtil.updateTrip(null, car.getVehicleId(), null, orderPrivateCar.getTripId(), null, null, null, null, orderPrivateCar.getId(), 1);
+//                        if(updateTrip){
+//                            break;
+//                        }
+//                        try {
+//                            Thread.sleep(3000L);
+//                        } catch (InterruptedException e) {
+//                            throw new RuntimeException(e);
+//                        }
+//                    }
+//                }
+//            }
     
     
     
@@ -1145,64 +1145,64 @@
                 car.setVehicleId(UUIDUtil.getRandomCode());
                 carService.updateById(car);
             }
-            String vehicles = fleetEngineUtil.getVehicles(car.getVehicleId());
-            if(ToolUtil.isEmpty(vehicles)){
-                TCarModel carModel = carModelMapper.selectById(car.getCarModelId());
-                boolean createVehicles = fleetEngineUtil.createVehicles(carModel.getSeat() - 1, car.getCarLicensePlate(), car.getVehicleId());
-                if(!createVehicles){
-                    for (int i = 0; i < 5; i++) {
-                        createVehicles = fleetEngineUtil.createVehicles(carModel.getSeat() - 1, car.getCarLicensePlate(), car.getVehicleId());
-                        if(createVehicles){
-                            break;
-                        }
-                        try {
-                            Thread.sleep(3000L);
-                        } catch (InterruptedException e) {
-                            throw new RuntimeException(e);
-                        }
-                    }
-                }
-            }
-    
-            //修改google订单信息或者创建新的行程
-            String trip = fleetEngineUtil.getTrip(orderLogistics.getTripId());
-            if(ToolUtil.isEmpty(trip)){
-                JSONObject createTrip = fleetEngineUtil.createTrip(car.getVehicleId(), 1, orderLogistics.getTripId(),
-                        orderLogistics.getStartLat().toString(), orderLogistics.getStartLon().toString(), orderLogistics.getEndLat().toString(), orderLogistics.getEndLon().toString());
-                JSONObject error = createTrip.getJSONObject("error");
-                if(null != error){
-                    for (int i = 0; i < 5; i++) {
-                        createTrip = fleetEngineUtil.createTrip(car.getVehicleId(), 1, orderLogistics.getTripId(),
-                                orderLogistics.getStartLat().toString(), orderLogistics.getStartLon().toString(), orderLogistics.getEndLat().toString(), orderLogistics.getEndLon().toString());
-                        error = createTrip.getJSONObject("error");
-                        String tripStatus = createTrip.getString("tripStatus");
-                        if(null == error && "NEW".equals(tripStatus)){
-                            break;
-                        }
-                        try {
-                            Thread.sleep(3000L);
-                        } catch (InterruptedException e) {
-                            throw new RuntimeException(e);
-                        }
-                    }
-                }
-            }else{
-                //开始修改行程数据
-                boolean updateTrip = fleetEngineUtil.updateTrip(null, car.getVehicleId(), null, orderLogistics.getTripId(), null, null, null, null, orderLogistics.getId(), 4);
-                if(!updateTrip){
-                    for (int i = 0; i < 5; i++) {
-                        updateTrip = fleetEngineUtil.updateTrip(null, car.getVehicleId(), null, orderLogistics.getTripId(), null, null, null, null, orderLogistics.getId(), 4);
-                        if(updateTrip){
-                            break;
-                        }
-                        try {
-                            Thread.sleep(3000L);
-                        } catch (InterruptedException e) {
-                            throw new RuntimeException(e);
-                        }
-                    }
-                }
-            }
+//            String vehicles = fleetEngineUtil.getVehicles(car.getVehicleId());
+//            if(ToolUtil.isEmpty(vehicles)){
+//                TCarModel carModel = carModelMapper.selectById(car.getCarModelId());
+//                boolean createVehicles = fleetEngineUtil.createVehicles(carModel.getSeat() - 1, car.getCarLicensePlate(), car.getVehicleId());
+//                if(!createVehicles){
+//                    for (int i = 0; i < 5; i++) {
+//                        createVehicles = fleetEngineUtil.createVehicles(carModel.getSeat() - 1, car.getCarLicensePlate(), car.getVehicleId());
+//                        if(createVehicles){
+//                            break;
+//                        }
+//                        try {
+//                            Thread.sleep(3000L);
+//                        } catch (InterruptedException e) {
+//                            throw new RuntimeException(e);
+//                        }
+//                    }
+//                }
+//            }
+//
+//            //修改google订单信息或者创建新的行程
+//            String trip = fleetEngineUtil.getTrip(orderLogistics.getTripId());
+//            if(ToolUtil.isEmpty(trip)){
+//                JSONObject createTrip = fleetEngineUtil.createTrip(car.getVehicleId(), 1, orderLogistics.getTripId(),
+//                        orderLogistics.getStartLat().toString(), orderLogistics.getStartLon().toString(), orderLogistics.getEndLat().toString(), orderLogistics.getEndLon().toString());
+//                JSONObject error = createTrip.getJSONObject("error");
+//                if(null != error){
+//                    for (int i = 0; i < 5; i++) {
+//                        createTrip = fleetEngineUtil.createTrip(car.getVehicleId(), 1, orderLogistics.getTripId(),
+//                                orderLogistics.getStartLat().toString(), orderLogistics.getStartLon().toString(), orderLogistics.getEndLat().toString(), orderLogistics.getEndLon().toString());
+//                        error = createTrip.getJSONObject("error");
+//                        String tripStatus = createTrip.getString("tripStatus");
+//                        if(null == error && "NEW".equals(tripStatus)){
+//                            break;
+//                        }
+//                        try {
+//                            Thread.sleep(3000L);
+//                        } catch (InterruptedException e) {
+//                            throw new RuntimeException(e);
+//                        }
+//                    }
+//                }
+//            }else{
+//                //开始修改行程数据
+//                boolean updateTrip = fleetEngineUtil.updateTrip(null, car.getVehicleId(), null, orderLogistics.getTripId(), null, null, null, null, orderLogistics.getId(), 4);
+//                if(!updateTrip){
+//                    for (int i = 0; i < 5; i++) {
+//                        updateTrip = fleetEngineUtil.updateTrip(null, car.getVehicleId(), null, orderLogistics.getTripId(), null, null, null, null, orderLogistics.getId(), 4);
+//                        if(updateTrip){
+//                            break;
+//                        }
+//                        try {
+//                            Thread.sleep(3000L);
+//                        } catch (InterruptedException e) {
+//                            throw new RuntimeException(e);
+//                        }
+//                    }
+//                }
+//            }
     
     
             //删除定时任务

--
Gitblit v1.7.1