# HotelKpiWarningCommentQuery.java

    package cloud.wconnect.workperformance.pojo.query.hotelkpi.old;

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

    import jakarta.validation.constraints.NotNull;

    /**
     * Query: Hotel KPI Comment
     *
     * @author zc
     * @date 2024/06/27
     */
    @Data
    public class HotelKpiWarningCommentQuery {
        /**
         * 日期类型
         */
        @NotNull(message = "The dateType cannot be null")
        @Range(min = 1, max = 4, message = "The dateType must be between [1:Week 2:Month 3:Quarter 4:Year]")
        private Integer dateType;

        /**
         * 日期(yyyyMMdd; yyyyMM; yyyy)
         */
        @NotNull(message = "The date cannot be null")
        private Long date;

        /**
         * 指标类型
         */
        @NotNull(message = "The metricsType cannot be null")
        @Range(min = 1, max = 29, message = "The metricsType must be in [1 - 29]")
        private Integer metricsType;

        /**
         * 当前页
         */
        @NotNull(message = "The page cannot be null")
        private Integer page;

        /**
         * 每页条数
         */
        @NotNull(message = "The size cannot be null")
        private Integer size;
    }