userId]; return $where; } public function lists(): array { return MasterWorkerRetentionMoneyLog::where($this->searchWhere) ->where($this->queryWhere()) ->append(['action_text']) ->field(['id', 'action','amount','remark','create_time','update_time']) ->order(['id' => 'dsc']) ->select() ->toArray(); } public function count(): int { return MasterWorkerRetentionMoneyLog::where($this->queryWhere())->count(); } }