['property_head_id', 'property_user_id', 'remark', 'order_status', 'work_id'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/09/19 14:48 */ public function lists(): array { return PropertyOrder::where($this->searchWhere) ->field(['id', 'property_head_id', 'property_user_id', 'remark', 'order_status', 'work_id']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2024/09/19 14:48 */ public function count(): int { return PropertyOrder::where($this->searchWhere)->count(); } }