['contact_people'], ]; } public function querySearch():array { $where = []; $where[] = ['worker_id','=',$this->userId]; return $where; } public function lists(): array { return ShopAddress::where($this->searchWhere) ->where($this->querySearch()) ->field(['id','area' ,'address', 'house_number','house_number','contact_number','contact_people']) ->limit($this->limitOffset, $this->limitLength) ->order('id','desc') ->select() ->toArray(); } public function count(): int { return ShopAddress::where($this->searchWhere)->where($this->querySearch())->count(); } }