# StatisticsTypeTrendQuery.java

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

    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/11
     */
    @Data
    public class StatisticsTypeTrendQuery {

        /**
         * 统计单位 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;

        /**
         * 时间跨度 。n个月/季度
         */
        @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;

    }