feat(UserShipLists): 根据type_id判断是否添加搜索条件
This commit is contained in:
parent
c2a46c93a9
commit
13d4ac1fad
@ -42,7 +42,10 @@ class UserShipLists extends BaseAdminDataLists
|
|||||||
if(!$this->request->__get('id')){
|
if(!$this->request->__get('id')){
|
||||||
$arr[]=['id'=>0,'title'=>'一般用户','limit'=>0];
|
$arr[]=['id'=>0,'title'=>'一般用户','limit'=>0];
|
||||||
}
|
}
|
||||||
$this->searchWhere[]=['id','<>',4];
|
$type_id=$this->request->get('type_id',0);
|
||||||
|
if($type_id!=4){
|
||||||
|
$this->searchWhere[]=['id','<>',4];
|
||||||
|
}
|
||||||
$lists = UserShip::where($this->searchWhere)
|
$lists = UserShip::where($this->searchWhere)
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->field($field)
|
->field($field)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user