# WeeklyMonthlyRevenueGroupDTO.java

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

    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 WeeklyMonthlyRevenueGroupDTO {

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

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

        /**
         * Sold
         */
        @Range(min = 0, max = 999999, message = "The sold must be between 0 and 999999")
        private Integer 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;

        /**
         * sold、adr、revenue字段的状态, 状态0:forecast 1:history
         */
        private Integer status;

        /**
         * 状态0:forecast 1:history
         */
        private Integer contractedStatus;

        /**
         * 状态0:forecast 1:history
         */
        private Integer cancelledStatus;

    }