# CompRoomQuery.java

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

    import cloud.wconnect.frontoffice.pojo.group.General;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotNull;
    import java.util.List;

    /**
     * comp room 查询
     */
    @Data
    public class CompRoomQuery {

        /**
         * 资产id
         */
        private Integer propertyId;

        /**
         * 申请时间开始, 年月日时分秒 时间戳
         */
        private Long requestDateBegin;

        /**
         * 申请时间结束，年月日时分秒 时间戳
         */
        private Long requestDateEnd;

        /**
         * 入住时间开始，年月日
         */
        private Long checkInDateBegin;

        /**
         * 入住时间结束，年月日
         */
        private Long checkInDateEnd;

        /**
         * 创建人
         */
        private Long createBy;

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

        /**
         * 审批状态
         */
        private List<Integer> approveStatus;

        /**
         * 客人姓名
         */
        private String guestName;

        @NotNull(message = "the page must not be null",groups = {General.class})
        private Integer page;

        @NotNull(message = "the size must not be null",groups = {General.class})
        private Integer size;

        /**
         * 是否关联
         */
        private Boolean isRel;

        /**
         * 房间数
         */
        private Integer numberOfRooms;

        /**
         * 是否归档
         */
        private Boolean isArchive;

        /**
         * 确认信息
         */
        private String confirmation;

        /**
         * 排序字段 1：guestName 2:checkInDate 3:checkOutDate 4:id
         */
        @Range(min = 1, max = 4, message = "The orderByField must between in [1:guestName 2:checkInDate 3:checkOutDate 4:id]")
        private Integer orderByField;

        /**
         * 排序方式1：正序 2：倒序
         */
        @Range(min = 1, max = 2, message = "The orderByWay must between in [1:asc 2:desc]")
        private Integer orderByWay;

        /**
         * 排序方式
         */
        public static final int ASC = 1;
        public static final int DESC = 2;

    }