From 6209aee60fd4a4a0253a701659c411e4dc35063b Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期一, 11 八月 2025 19:36:39 +0800
Subject: [PATCH] 修改bug

---
 DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CallbackController.java |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CallbackController.java b/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CallbackController.java
index 201c236..8c9fc2f 100644
--- a/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CallbackController.java
+++ b/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CallbackController.java
@@ -2,6 +2,7 @@
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
 import com.stylefeng.guns.core.util.ToolUtil;
 import com.stylefeng.guns.modular.account.service.ITEnterpriseWithdrawalService;
 import com.stylefeng.guns.modular.account.service.UserWithdrawalService;
@@ -31,6 +32,7 @@
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -156,20 +158,28 @@
             if("1".equals(orderType)){
                 OrderPrivateCar orderPrivateCar = orderPrivateCarService.selectById(orderId);
                 orderPrivateCar.setVoice(fileUrl);
+                orderPrivateCar.setVoiceTime(new Date());
                 orderPrivateCarService.updateById(orderPrivateCar);
+                List<OrderPrivateCar> orderPrivateCars = orderPrivateCarService.selectList(new EntityWrapper<OrderPrivateCar>().eq("pid", orderId));
+                for(OrderPrivateCar orderPrivateCar1 : orderPrivateCars){
+                    orderPrivateCar1.setVoice(fileUrl);
+                    orderPrivateCar1.setVoiceTime(new Date());
+                    orderPrivateCarService.updateById(orderPrivateCar1);
+                }
             }
             if("2".equals(orderType)){
                 OrderTaxi orderTaxi = orderTaxiService.selectById(orderId);
                 orderTaxi.setVoice(fileUrl);
+                orderTaxi.setVoiceTime(new Date());
                 orderTaxiService.updateById(orderTaxi);
             }
             if("3".equals(orderType)){
                 OrderCrossCity orderCrossCity = orderCrossCityService.selectById(orderId);
                 orderCrossCity.setVoice(fileUrl);
+                orderCrossCity.setVoiceTime(new Date());
                 orderCrossCityService.updateById(orderCrossCity);
             }
-            
-            // TODO 顺风车
+
         }
         PrintWriter out = null;
         try {

--
Gitblit v1.7.1