# HotelKpiAnalysisQuery.java

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

    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Size;
    import lombok.Data;

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

    }