From 28e3ff6cfc3d21d3e99d769b4105819a75afc063 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期三, 07 二月 2024 14:05:55 +0800 Subject: [PATCH] Merge branch 'dev' of http://120.76.84.145:10101/gitblit/r/java/IgoTravel --- ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TOrderLogisticsController.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TOrderLogisticsController.java b/ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TOrderLogisticsController.java index 78a056d..f8a9c87 100644 --- a/ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TOrderLogisticsController.java +++ b/ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TOrderLogisticsController.java @@ -105,9 +105,11 @@ TOrderLogistics tOrderLogistics = tOrderLogisticsService.selectById(tOrderLogisticsId); //修改之前司机状态 -- 空闲 - TDriver driver = itDriverService.selectById(tOrderLogistics.getDriverId()); - driver.setState(2); - itDriverService.updateById(driver); + if(null != tOrderLogistics.getDriverId()){ + TDriver driver = itDriverService.selectById(tOrderLogistics.getDriverId()); + driver.setState(2); + itDriverService.updateById(driver); + } tOrderLogistics.setState(10); tOrderLogisticsService.updateById(tOrderLogistics); -- Gitblit v1.7.1