# OtbRevenueQuery.java

    package cloud.wconnect.rateshop.pojo.query.revenue;

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

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

    /**
     * Query: Otb Revenue
     *
     * @author yyt
     * 2023/12/14
     */
    @Data
    public class OtbRevenueQuery {

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

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

        /**
         * 资产 id
         */
        @NotEmpty(message = "The propertyIds cannot be empty")
        private List<Integer> propertyIds;

    }