# HotelKpiWarningCommentQuery.java

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

    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")
        private Integer metricsType;

        /**
         * 分类
         */
        @NotNull(message = "The category cannot be null")
        private Integer category;

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

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