update
This commit is contained in:
parent
274d082546
commit
975333cc75
@ -519,12 +519,13 @@ class VehicleController extends BaseApiController
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function townCompanyContractList() {
|
public function townCompanyContractList() {
|
||||||
|
//获取公司信息
|
||||||
$company = Company::where('id',$this->userInfo['company_id'])->find();
|
$company = Company::where('id',$this->userInfo['company_id'])->find();
|
||||||
if(empty($company)){
|
if(empty($company)){
|
||||||
return $this->fail('请求错误');
|
return $this->fail('请求错误');
|
||||||
}
|
}
|
||||||
if($company['company_type'] != 16){
|
if($company['company_type'] != 16){
|
||||||
return ['code'=>0,'msg'=>'非镇街公司不能访问'];
|
return $this->fail('非镇街公司不能访问');
|
||||||
}
|
}
|
||||||
$data = VehicleContract::field('id,contract_no,file,status,create_time,update_time')->where('contract_logistic_id','<>',0)->where('company_b_id',$company['id'])->select();
|
$data = VehicleContract::field('id,contract_no,file,status,create_time,update_time')->where('contract_logistic_id','<>',0)->where('company_b_id',$company['id'])->select();
|
||||||
return $this->success('请求成功',$data->toArray());
|
return $this->success('请求成功',$data->toArray());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user