# WeeklyMonthlyRevenueOtherDTO.java

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

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Size;
    import java.util.List;

    /**
     * DTO: Weekly Monthly Revenue Other
     *
     * @author zc
     * @date 2024/05/15
     */
    @Data
    public class WeeklyMonthlyRevenueOtherDTO {

        /**
         * 年月（yyyyMM）
         */
        @NotNull(message = "The theMonth cannot be null")
        private Long theMonth;

        /**
         * 分类 （1:"F&B"; 2:"MISC"）
         */
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 2, message = "The category must be in [1:F&B, 2:MISC]")
        private Integer category;

        /**
         * 数值
         */
        @Valid
        @NotEmpty(message = "The otherRevenues cannot be empty")
        @Size(min = 3, max = 3, message = "The otherRevenues size must be 3")
        private List<WeeklyMonthlyRevenueOtherRevenueDTO> otherRevenues;
    }