| xqd
@@ -40,7 +40,7 @@ class AdminUser extends BaseProcess
|
|
|
* @param $search
|
|
|
* @param $pagesize
|
|
|
*/
|
|
|
- public function search($search, $orderby = array(), $pagesize = PAGE_NUMS)
|
|
|
+ public function search($search, $orderby = array(), $store_id, $pagesize = PAGE_NUMS)
|
|
|
{
|
|
|
$currentQuery = $this->objModel;
|
|
|
if(isset($search['keyword']) && !empty($search['keyword'])) {
|
| xqd
@@ -51,6 +51,10 @@ class AdminUser extends BaseProcess
|
|
|
->orwhere('mobile', 'like', $keywords);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ if ($store_id != 0) {
|
|
|
+ $currentQuery = $currentQuery->where('store_id', $store_id);
|
|
|
+ }
|
|
|
if(isset($search['resetPwd']) && $search['resetPwd']) {
|
|
|
|
|
|
$currentQuery = $currentQuery->where('reset_password', '<>', '');
|