Merge pull request '镇公司与平台签约的租赁合同列表bug修复' (#90) from zhangwei into dev

Reviewed-on: #90
This commit is contained in:
weiz 2023-10-17 17:24:25 +08:00
commit db171e997d

View File

@ -556,7 +556,7 @@ class VehicleController extends BaseApiController
if($company['company_type'] != 16){
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());
}