Merge pull request 'update' (#112) from zhangwei into master
Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/112
This commit is contained in:
commit
3b7d110f90
@ -291,13 +291,8 @@ class VehicleController extends BaseApiController
|
|||||||
|
|
||||||
//镇街公司收到的小组服务公司租赁申请列表
|
//镇街公司收到的小组服务公司租赁申请列表
|
||||||
public function rentApplyList() {
|
public function rentApplyList() {
|
||||||
//获取参数
|
|
||||||
$params = $this->request->get(['status']);
|
$data = VehicleContract::where('company_a_id',$this->userInfo['company_id'])->where('status','<>',4)->select();
|
||||||
$search = [];
|
|
||||||
if(isset($params['status'])){
|
|
||||||
$search[] = ['status','=',$params['status']];
|
|
||||||
}
|
|
||||||
$data = VehicleContract::where('company_a_id',$this->userInfo['company_id'])->where($search)->select();
|
|
||||||
return $this->success('请求成功',$data->toArray());
|
return $this->success('请求成功',$data->toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user