# CompRoomExportQuery.java

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

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

    import jakarta.validation.constraints.NotNull;

    /**
     * 导出 查询对象
     *
     * @author lichen
     * @date 2023/8/19
     */
    @Data
    public class CompRoomExportQuery {

        /**
         * 查询类型
         */
        @NotNull(message = "The type cannot be null")
        @Range(min = 1,max = 2, message = "The type must be between in [1: requestDate 2:checkInDate]")
        private Integer type;

        /**
         * 开始时间
         */
        @NotNull(message = "The beginDate cannot be null")
        private Long beginDate;

        /**
         * 结束时间
         */
        @NotNull(message = "The endDate cannot be null")
        private Long endDate;

        /**
         * 查询条件
         */
        public static final int REQUEST_DATE = 1;
        public static final int CHECK_IN_DATE = 2;

    }