11
This commit is contained in:
parent
2626d8ec47
commit
d1bc344ac3
@ -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();
|
||||
//获取车辆列表
|
||||
|
Loading…
x
Reference in New Issue
Block a user