['worker_id','action'], ]; } /** * @notes 搜索条件 * @author 段誉 * @date 2023/2/24 15:26 */ public function queryWhere() { $where = []; return $where; } /** * @notes 获取列表 * @return array * @author 段誉 * @date 2023/2/24 15:31 */ public function lists(): array { $lists = MasterWorkerRetentionMoneyLog::alias('al') ->where($this->searchWhere) ->where($this->queryWhere()) ->append(['action_text']) ->limit($this->limitOffset, $this->limitLength) ->select() ->toArray(); return $lists; } /** * @notes 获取数量 * @return int * @author 段誉 * @date 2023/2/24 15:36 */ public function count(): int { return MasterWorkerRetentionMoneyLog::where($this->queryWhere()) ->where($this->searchWhere) ->count(); } }