diff --git a/app/api/controller/VehicleController.php b/app/api/controller/VehicleController.php index eccd0afe3..3f1302b62 100644 --- a/app/api/controller/VehicleController.php +++ b/app/api/controller/VehicleController.php @@ -205,6 +205,17 @@ class VehicleController extends BaseApiController if(empty($company_id)){ return $this->fail('公司信息不存在'); } + //获取当前公司类型 + $currentCompany = Company::where('id',$company_id)->find(); + if($currentCompany['company_type'] == 18){ + $apply = VehicleVillageApply::where('village_company_id',$company_id)->find(); + $car = VehicleRent::where('rent_company_id',$company_id)->find(); + $data = [ + 'apply' => $apply->toArray(), + 'car_list' => $car->toArray() + ]; + return $this->success('success',$data); + } //获取小组服务公司申请信息 $apply = VehicleVillageApply::where('town_company_id',$company_id)->where('status',0)->select(); //获取车辆列表