This commit is contained in:
unknown 2023-09-01 15:16:42 +08:00
parent 07e7251d62
commit 3e79ea2f2f

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