This commit is contained in:
unknown 2023-08-31 18:04:48 +08:00
parent 33fe487eec
commit b29ee995e0

View File

@ -298,7 +298,7 @@ class VehicleController extends BaseApiController
return $this->fail('非镇街公司不能访问'); return $this->fail('非镇街公司不能访问');
} }
//获取小组服务公司申请信息 //获取小组服务公司申请信息
$vehicleContract = VehicleContract::where('company_a_id',$company['id'])->where('status',-1)->limit(2)->order('create_time desc')->select()->toArray(); $vehicleContract = VehicleContract::where('company_a_id',$company['id'])->where('status','in','-1,0,1,2')->limit(2)->order('create_time desc')->select()->toArray();
//获取车辆列表 //获取车辆列表
$vehicleRentCars = VehicleRent::where('company_id',$company['id'])->select()->each(function($item){ $vehicleRentCars = VehicleRent::where('company_id',$company['id'])->select()->each(function($item){
if($item['status'] == 2){ if($item['status'] == 2){