# HotelKpiMetricsItemQuery.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.Null;

    /**
     * Query: Hotel KPI Metrics Item
     *
     * @author zc
     * @date 2024/06/27
     */
    @Data
    public class HotelKpiMetricsItemQuery {

        /**
         * 父级指标 id
         */
        private Integer parentId;

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

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

        /**
         * 资产 id
         */
        @Null(message = "The propertyId must be null")
        private Integer propertyId;

        /**
         * 开始时间（yyyyMMdd，用于筛选有效时间范围的数据）
         */
        @Null(message = "The startDate must be null")
        private Long startDate;

        /**
         * 结束时间（yyyyMMdd，用于筛选有效时间范围的数据）
         */
        @Null(message = "The startDate must be null")
        private Long endDate;
    }