From 4a7dbd7bcba982826abf7b0fa0c05a695bbda947 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期二, 26 八月 2025 11:20:40 +0800 Subject: [PATCH] 8.26 --- DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java b/DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java index 1617416..a9144a6 100644 --- a/DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java +++ b/DriverOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/server/impl/OrderLogisticsServiceImpl.java @@ -8,11 +8,9 @@ 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.system.dao.CarMapper; import com.stylefeng.guns.modular.system.dao.RegionMapper; -import com.stylefeng.guns.modular.system.model.Company; -import com.stylefeng.guns.modular.system.model.Driver; -import com.stylefeng.guns.modular.system.model.Income; -import com.stylefeng.guns.modular.system.model.Region; +import com.stylefeng.guns.modular.system.model.*; import com.stylefeng.guns.modular.system.service.*; import com.stylefeng.guns.modular.system.util.*; import com.stylefeng.guns.modular.taxi.model.OrderTaxi; @@ -68,10 +66,8 @@ @Autowired private ITransactionDetailsService transactionDetailsService; - - - - + @Autowired + private CarMapper carMapper; /** @@ -428,8 +424,12 @@ } orderLogistics.setPickUpCode(random); this.updateById(orderLogistics); + Integer driverId = orderLogistics.getDriverId(); + Driver driver = driverService.selectById(driverId); + Integer carId = driver.getCarId(); + Car car = carMapper.selectById(carId); //发送短信 - SMSUtil.send(orderLogistics.getRecipientPhone(), "您的验证码:" + random + ",您正在进行身份验证,请勿泄露于他人!", "2431012312835"); + SMSUtil.send(orderLogistics.getRecipientPhone(), "您好!您的小件物流订单已被车辆"+car.getCarLicensePlate()+"接单,司机电话:"+driver.getPhone()+",取件码为"+random+",请在取货是出示取件码。", "2431012324056"); // aLiSendSms.sendSms(orderLogistics.getRecipientPhone(), "SMS_482775061", "{\"code\":\"" + random + "\"}"); } -- Gitblit v1.7.1