# WeeklyMonthlyRevenueBudgetGroupDTO.java

    package cloud.wconnect.rateshop.pojo.dto.weeklymonthlyrevenue.budget;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import cloud.wconnect.commonlib.pojo.dto.group.Edition;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import java.math.BigDecimal;

    /**
     * DTO: Weekly Monthly Revenue Group
     *
     * @author zc
     * @date 2024/05/13
     */
    @Data
    public class WeeklyMonthlyRevenueBudgetGroupDTO {

        /**
         * Contracted
         */
        @Range(min = 0, max = 999999, message = "The contracted must be between 0 and 999999", groups = {Edition.class})
        private Long contracted;

        /**
         * Cancelled
         */
        @Range(min = 0, max = 999999, message = "The cancelled must be between 0 and 999999", groups = {Edition.class})
        private Long cancelled;

        /**
         * Sold
         */
        @Range(min = 0, max = 999999, message = "The sold must be between 0 and 999999")
        private Long sold;

        /**
         * ADR
         */
        @DigitsCustom(integer = 10, message = "The adr is wrong format")
        private BigDecimal adr;

        /**
         * Revenue
         */
        @DigitsCustom(integer = 10, message = "The revenue is wrong format")
        private BigDecimal revenue;

    }