update
This commit is contained in:
parent
4ee45bdf08
commit
6e90abe2b3
@ -380,7 +380,14 @@ class VehicleController extends BaseApiController
|
||||
return $this->fail('非镇街公司不能访问');
|
||||
}
|
||||
//获取小组服务公司申请信息
|
||||
$vehicleContract = VehicleContract::where('company_a_id',$company['id'])->where('status','in','-1,0,1,2')->limit(4)->order('create_time desc')->select()->toArray();
|
||||
$vehicleContract_pre = VehicleContract::where('company_a_id',$company['id'])->where('status','in','-1,0,1,2')->limit(4)->order('create_time desc')->select()->toArray();
|
||||
$vehicleContract = [];
|
||||
foreach ($vehicleContract_pre as $v) {
|
||||
$vehicleBuy = VehicleBuyRecord::where('contract_id',$v['id'])->findOrEmpty();
|
||||
if($vehicleBuy->isEmpty()){
|
||||
$vehicleContract = $v;
|
||||
}
|
||||
}
|
||||
//获取车辆列表
|
||||
$vehicleRentCars = VehicleRent::where('company_id',$company['id'])->where('status','in','0,1,2')->select()->each(function($item){
|
||||
if($item['status'] == 2){
|
||||
|
Loading…
x
Reference in New Issue
Block a user