Merge pull request 'update' (#96) from zhangwei into master

Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/96
This commit is contained in:
wei1990 2023-09-01 15:17:02 +08:00
commit 9e453d0076

View File

@ -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();