yanderong
2026-07-09 8b04bf05239ca0b9941192ce7856c1948c6adbbf
DriverYKDTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/OrderController.java
@@ -13,7 +13,6 @@
import com.stylefeng.guns.modular.smallLogistics.server.IOrderLogisticsService;
import com.stylefeng.guns.modular.specialTrain.model.OrderPrivateCar;
import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService;
import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService;
import com.stylefeng.guns.modular.system.dao.DriverWorkMapper;
import com.stylefeng.guns.modular.system.model.*;
import com.stylefeng.guns.modular.system.service.*;
@@ -25,10 +24,10 @@
import com.stylefeng.guns.modular.system.warpper.*;
import com.stylefeng.guns.modular.taxi.model.OrderTaxi;
import com.stylefeng.guns.modular.taxi.service.IOrderTaxiService;
import com.stylefeng.guns.modular.taxi.service.IOrderTaxiService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -44,6 +43,7 @@
/**
 * 订单相关控制器
 */
@Slf4j
@RestController
@RequestMapping("")
public class OrderController {
@@ -119,6 +119,7 @@
            List<Map<String, Object>> list = orderService.queryOrderList(state, pageNum, size, uid);
            return ResultUtil.success(OrderListWarpper.getOrderListWarpper(list));
        }catch (Exception e){
            log.error("获取首页订单列表异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -152,6 +153,7 @@
            List<Map<String, Object>> list = orderService.queryOrderList1(state, type, pageNum, size, uid);
            return ResultUtil.success(OrderListWarpper.getOrderListWarpper(list));
        }catch (Exception e){
            log.error("获取首页订单列表异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -187,6 +189,7 @@
            List<OrderListWarpper> listWarppers = orderService.queryMyAllOrder(state, pageNum, size, uid);
            return ResultUtil.success(listWarppers);
        }catch (Exception e){
            log.error("获取我的订单列表异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -218,6 +221,7 @@
            List<OrderListWarpper> listWarppers = orderService.queryMyAllOrder1(pageNum, size, uid);
            return ResultUtil.success(listWarppers);
        }catch (Exception e){
            log.error("获取我的订单列表异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -247,6 +251,7 @@
            Map<String, Object> map = orderService.queryPushOrder(orderId, orderType, lon, lat);
            return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map));
        }catch (Exception e){
            log.error("获取抢单界面的订单详情异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -295,6 +300,7 @@
            return orderService.grabOrder(orderId, orderType, uid);
        }catch (Exception e){
            log.error("司机抢单操作异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -347,6 +353,7 @@
            }
            return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map));
        }catch (Exception e){
            log.error("获取服务中页面订单详情异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -410,6 +417,7 @@
            return ResultUtil.success(orderWarpper);
            //return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map));
        }catch (Exception e){
            log.error("获取服务中页面订单详情异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -442,6 +450,7 @@
           // baseWarpper.setAmount(aDouble);
            return ResultUtil.success(baseWarpper);
        }catch (Exception e){
            log.error("获取改派支付金额异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -475,6 +484,7 @@
        }catch (SystemException s){
            return ResultUtil.error(s.getMsg());
        } catch (Exception e){
            log.error("提交改派申请(使用的)异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -688,6 +698,7 @@
        try{
            return orderService.confirmFees1(orderId, orderType, type, travelFee, additionalFee);
        }catch (Exception e){
            log.error("1.0-司机确认费用异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -730,6 +741,7 @@
                orderCrossCityService.updateById(orderCrossCity);
            }
        }catch (Exception e){
            log.error("约克多-上传录音文件异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }
@@ -762,6 +774,7 @@
        try{
            return orderService.confirmFees_(orderId, orderType, type, travelFee, lon, lat);
        }catch (Exception e){
            log.error("司机确认费用(车载端)异常", e);
            e.printStackTrace();
            System.err.println(lon + "," + lat);
            return ResultUtil.runErr();
@@ -794,6 +807,7 @@
            }
            return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map));
        }catch (Exception e){
            log.error("获取待支付页详情异常", e);
            e.printStackTrace();
            return ResultUtil.runErr();
        }