# PropertyLossAmountTrendQuery.java

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

    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/9
     */
    @Data
    public class PropertyLossAmountTrendQuery {

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

    }