feat(UserShipLists): 根据type_id判断是否添加搜索条件

This commit is contained in:
mkm 2024-07-02 14:42:26 +08:00
parent c2a46c93a9
commit 13d4ac1fad

View File

@ -42,7 +42,10 @@ class UserShipLists extends BaseAdminDataLists
if(!$this->request->__get('id')){
$arr[]=['id'=>0,'title'=>'一般用户','limit'=>0];
}
$type_id=$this->request->get('type_id',0);
if($type_id!=4){
$this->searchWhere[]=['id','<>',4];
}
$lists = UserShip::where($this->searchWhere)
->limit($this->limitOffset, $this->limitLength)
->field($field)