# PropertyCheckInNumTrendQuery.java

    package cloud.wconnect.frontoffice.pojo.query.comproom;

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

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

    /**
     * 资产免费房入住趋势，查询类
     *
     * @author lichen
     * @date 2023/12/12
     */
    @Data
    public class PropertyCheckInNumTrendQuery {

        /**
         * 统计单位 1：月 2：季度
         */
        @NotNull(message = "The unit cannot be null")
        @Range(min = 1, max = 2, message = "The unit must between in [1:month 2:quarter]")
        private Integer unit;

        /**
         * 时间跨度
         */
        @NotNull(message = "The span cannot be null")
        private Integer span;

        /**
         * 统计的资产ID集合
         */
        @NotEmpty(message = "The propertyIds cannot be empty")
        private List<Integer> propertyIds;

        /**
         * 统计单位
         */
        public static final int MONTH = 1;
        public static final int QUARTER = 2;

    }