# DisputeAmountStatisticsQuery.java

    package cloud.wconnect.finance.pojo.query.chargeback.widget;

    import cloud.wconnect.commonlib.pojo.dto.group.Addition;
    import cloud.wconnect.commonlib.pojo.dto.group.Edition;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.NotNull;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import java.util.List;

    /**
     * Query: Result Statistics
     *
     * @author yyt
     * 2025/12/8
     */
    @Data
    public class DisputeAmountStatisticsQuery {

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

        /**
         * 时间跨度 n个月/n个季度/n个年
         */
        @NotNull(message = "The span cannot be null", groups = {Addition.class, Edition.class})
        @Range(min = 1, max = 12, message = "the span exceed the limit", groups = {Addition.class, Edition.class})
        private Integer span;

        /**
         * 资产 id
         */
        @NotEmpty(message = "The propertyIds cannot be empty", groups = {Edition.class})
        private List<Integer> propertyIds;

    }