Merge pull request '更改镇街公司显示合同列表' (#29) from zhangwei into dev

Reviewed-on: #29
This commit is contained in:
weiz 2023-09-21 11:45:52 +08:00
commit bc1b625e71

View File

@ -576,7 +576,7 @@ class VehicleController extends BaseApiController
if($company['company_type'] != 16){ if($company['company_type'] != 16){
return $this->fail('非镇街公司不能访问'); return $this->fail('非镇街公司不能访问');
} }
$data = VehicleContract::field('id,contract_no,contract_url,status,create_time,update_time')->where('contract_logistic_id','<>',0)->where('company_b_id',$company['id'])->select(); $data = VehicleContract::field('id,contract_no,contract_url,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());
} }