# HotelKpiAnalysisQuery.java

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

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

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

    /**
     * Query: Hotel KPI Analysis
     *
     * @author zc
     * @date 2024/06/27
     */
    @Data
    public class HotelKpiAnalysisQuery {

        /**
         * 目标年份
         */
        @NotNull(message = "The targetYear cannot be null")
        private Long targetYear;

        /**
         * 对比年份
         */
        @Size(min = 1, max = 5, message = "The comparisonYears size must be in [1 - 5]")
        private List<Long> comparisonYears;

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

    }