# OooRoomQuery.java

    package cloud.wconnect.frontoffice.pojo.query.oooroom;

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    /**
     * Query: OOO Room
     *
     * @author yyt
     * 2023/8/5
     */
    @Data
    public class OooRoomQuery {

        /**
         * 房间号
         */
        private String roomNumber;

        /**
         * 房间类型
         */
        private Integer roomType;

        /**
         * 状态（close：1，open：2）
         */
        @Range(min = 1, max = 2, message = "the status must in [1:close, 2:open]")
        private Integer status;

        /**
         * 入住开始日期检索
         */
        private Long fromDate;

        /**
         * 页码
         */
        private Integer page;

        /**
         * 每页条数
         */
        private Integer size;

        public static final int STATUS_CLOSED = 1;

        public static final int STATUS_OPENING = 2;

    }