From 5aca95ef795ed92dcf91f02c8bd1f2673c52a4da Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 4 Dec 2023 15:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E5=95=86=E5=9F=8E=E6=9F=A5=E8=AF=A2=E4=B8=89=E8=BD=AE=E8=BD=A6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 28 -------------------------- 1 file changed, 28 deletions(-) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index 9014ef7d1..302d8930d 100755 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -820,32 +820,4 @@ class IndexController extends BaseApiController Db::name('company_authentication_fail_log')->insert(['company_id'=>$parmas['id'], 'log_type'=>3, 'fail_reason'=>$data['msg'], 'create_time'=>time()]); } } - - - public function vehicleCarList() - { - $param = $this->request->param(); - // 镇区域码为空,查区县的公司 - if (empty($param['streetCode'])) { - $companyList = Company::where('area', $param['areaCode'])->select()->toArray(); - } else { - $companyList = Company::where('street', $param['streetCode'])->select()->toArray(); - } - $companyIds = array_column($companyList, 'id'); - $carList = []; - // 查镇车辆列表 - $vehicleList = Db::name('vehicle_rent')->whereIn('company_id', $companyIds)->where('status','in','0,1,2')->field('car_id as id,car_license as license')->group('company_id')->select()->toArray(); - - // 查小组车辆列表 -// $buyCarRent = VehicleBuyRecord::whereIn('company_id', $companyIds)->where('status','<>',4)->findOrEmpty(); -// if($buyCarRent->isEmpty()){ -// $data = VehicleContract::whereIn('company_b_id', $companyIds)->where('type','<>',2)->order('id desc')->findOrEmpty(); -// }else { -// $data = $buyCarRent; -// } -// $list = $data->toArray(); -// $carsInfo = json_decode($list['cars_info'], true); -// $result = array_merge($vehicleList,$carsInfo); - return $this->success('获取成功', $vehicleList); - } }