# HotelKpiQuery.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
     *
     * @author zc
     * @date 2024/06/24
     */
    @Data
    public class HotelKpiQuery {

        /**
         * 日期类型
         */
        @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;

        /**
         * 开始日期(week:yyyyMMdd, month:yyyyMM, quarter:yyyyMM, year:yyyy)
         */
        @NotNull(message = "The startDate cannot be null")
        private Long startDate;

        /**
         * 结束日期(week:yyyyMMdd, month:yyyyMM, quarter:yyyyMM, year:yyyy)
         */
        @NotNull(message = "The endDate cannot be null")
        private Long endDate;
    }