This commit is contained in:
chenbo 2023-12-04 15:41:22 +08:00
parent 066e8c4382
commit 9b534e6c32

View File

@ -834,7 +834,7 @@ class IndexController extends BaseApiController
$companyIds = array_column($companyList, 'id');
$carList = [];
// 查镇车辆列表
$vehicleList = VehicleRent::whereIn('company_id', $companyIds)->where('status','in','0,1,2')->field('car_id as id,car_license as license')->select()->toArray();
$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();