adminId]; // todo 放开过滤条件,只有片区经理才能查看 return $where; } public function lists(): array { return Approve::where($this->searchWhere) ->where($this->queryWhere()) ->with('task') ->field('*') ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } public function count(): int { return Approve::where($this->searchWhere)->count(); } }