update
This commit is contained in:
parent
07e7251d62
commit
3e79ea2f2f
@ -516,6 +516,18 @@ 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'=>'非镇街公司不能访问'];
|
||||
}
|
||||
$data = Contract::field('contract_no,file,status,create_time,update_time')->where('contract_logistic_id','<>',0)->where('company_b_id',$company['id'])->select();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
public function sendSms($id,$title) {
|
||||
//获取合同数据
|
||||
$contract = VehicleContract::where('id',$id)->find();
|
||||
|
Loading…
x
Reference in New Issue
Block a user