# GmwrMonthlyOtbPaceValueSaveDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.monthlyotbpace.save;

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

    import java.math.BigDecimal;

    /**
     * DTO: Monthly OTB Pace Save Value
     *
     * @author zc
     * @date 2025/5/16
     */
    @Data
    public class GmwrMonthlyOtbPaceValueSaveDTO {
        /**
         * Category
         */
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 3, message = "The category must be in [1 - 3]")
        private Integer category;
        /**
         * OTB Room Sold
         */
        @Range(min = 0, max = 999999, message = "The otbRoomSold must be in [0 - 999999]")
        private Integer otbRoomSold;
        /**
         * OTB Room Sold Last Year
         */
        @Range(min = 0, max = 999999, message = "The otbRoomSoldLastYear must be in [0 - 999999]")
        private Integer otbRoomSoldLastYear;
        /**
         * OTB Revenue
         */
        @DigitsCustom(integer = 10, message = "The otbRevenue is wrong format")
        private BigDecimal otbRevenue;
        /**
         * OTB Revenue Last Year
         */
        @DigitsCustom(integer = 10, message = "The otbRevenueLastYear is wrong format")
        private BigDecimal otbRevenueLastYear;
    }