From f604df04d1f9fe90ee543a1772a3a8cdb50d3d66 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期五, 08 八月 2025 15:19:07 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/QianYunTong --- DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/taxi/service/impl/OrderTaxiServiceImpl.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/taxi/service/impl/OrderTaxiServiceImpl.java b/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/taxi/service/impl/OrderTaxiServiceImpl.java index 7bcf42c..0a007d2 100644 --- a/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/taxi/service/impl/OrderTaxiServiceImpl.java +++ b/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/taxi/service/impl/OrderTaxiServiceImpl.java @@ -75,6 +75,9 @@ @Autowired private TDriverPromotionActivityService driverPromotionActivityService; + + @Resource + private IOpenCityService openCityService; @@ -222,6 +225,8 @@ orderTaxi.setPromotionUser(driver1.getName()); orderTaxi.setPromotionPhone(driver1.getPhone()); orderTaxi.setPromotionDriverId(promotion); + }else{ + orderTaxi.setPromotion(1); } if(null == oldDriverId){ @@ -471,7 +476,9 @@ */ @Override public Map<String, Object> queryOrderInfo(Integer orderId) throws Exception { - return orderTaxiMapper.queryOrderInfo(orderId); + OrderTaxi orderTaxi = this.selectById(orderId); + OpenCity openCity = openCityService.openCity1(orderTaxi.getStartLon().toString(), orderTaxi.getStartLat().toString()); + return orderTaxiMapper.queryOrderInfo(orderId, openCity.getId()); } -- Gitblit v1.7.1