['status'], 'between_time' => ['expiration_time', 'dtime'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2026/02/05 14:34 */ public function lists(): array { return UserMember::alias("a") ->where($this->searchWhere) ->field(['a.id', 'a.user_id', 'a.expiration_time', 'a.dtime', 'a.update_dtime', 'b.avatar','b.real_name','b.nickname','b.mobile','a.status']) ->join("user b","a.user_id = b.id","left") ->limit($this->limitOffset, $this->limitLength) ->order(['a.id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2026/02/05 14:34 */ public function count(): int { return UserMember::where($this->searchWhere)->count(); } }