Merge pull request 'update' (#105) from zhangwei into master
Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/105
This commit is contained in:
commit
97052f25be
@ -519,12 +519,13 @@ class VehicleController extends BaseApiController
|
||||
}
|
||||
|
||||
public function townCompanyContractList() {
|
||||
//获取公司信息
|
||||
$company = Company::where('id',$this->userInfo['company_id'])->find();
|
||||
if(empty($company)){
|
||||
return $this->fail('请求错误');
|
||||
}
|
||||
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();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
|
Loading…
x
Reference in New Issue
Block a user