# WeeklyMonthlyRevenueBudgetContractDTO.java

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

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import java.math.BigDecimal;

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

        /**
         * 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;

    }