From cb7e84fe6e40f3ce3ed1fe3fb3b4c0da8c847793 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 27 八月 2025 23:51:22 +0800
Subject: [PATCH] 修改bug

---
 DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/DriverServiceImpl.java |   25 ++++---------------------
 1 files changed, 4 insertions(+), 21 deletions(-)

diff --git a/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/DriverServiceImpl.java b/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/DriverServiceImpl.java
index 9e470c0..15f0717 100644
--- a/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/DriverServiceImpl.java
+++ b/DriverQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/DriverServiceImpl.java
@@ -412,26 +412,6 @@
         if(registeredWarpper.getCompanyId()==null){
             return ResultUtil.error("请选择服务商");
         }
-
-        String code = registeredWarpper.getPlaceOfEmployment();
-        Company query = companyCityService.query(code);
-        if(null == query){
-            return ResultUtil.error("选择从业地暂未开通业务");
-        }
-        if(null != query){
-            switch (query.getType()){
-                case 1://平台
-                    driver.setCompanyId(query.getId());
-                    break;
-                case 2://分公司
-                    driver.setCompanyId(query.getId());
-                    break;
-                case 3://加盟商
-                    driver.setCompanyId(query.getSuperiorId());
-                    driver.setFranchiseeId(query.getId());
-                    break;
-            }
-        }
         driver.setHeadImgUrl(registeredWarpper.getHeadImgUrl());
         driver.setIdCardImgUrl1(registeredWarpper.getIdCardImgUrl1());
         driver.setIdCardImgUrl2(registeredWarpper.getIdCardImgUrl2());
@@ -658,7 +638,10 @@
                     return ResultUtil.error("车辆正在使用中");
                 }
             }
-
+            //专车业务需要校验
+//            if(0 == driver.getIsSynchronous() && type.contains("1")){
+//                return ResultUtil.error("请先开通钱包");
+//            }
             //判断车辆是否正在使用中
             Car car = carService.selectById(driver.getCarId());
             if(car.getUseDriverId() != null && !car.getUseDriverId().equals(uid)){

--
Gitblit v1.7.1