# GmwrOccSelloutConfigDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.selloutefficiency;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import jakarta.validation.constraints.Digits;
    import lombok.AllArgsConstructor;
    import lombok.Data;

    import jakarta.validation.constraints.NotNull;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Range;

    import java.math.BigDecimal;

    /**
     * DTO: OCC Sellout Config
     *
     * @author zc
     * @date 2024/10/19
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public class GmwrOccSelloutConfigDTO {

        /**
         * OCC Hour
         */
        @NotNull(message = "The occHour cannot be null")
        @Range(min = 1, max = 24, message = "The occHour must be in [1 - 24]")
        private Integer occHour;
        /**
         * OCC Percent 阈值
         */
        @NotNull(message = "The occThreshold cannot be null")
        @DigitsCustom(integer = 3, message = "The occThreshold is wrong format")
        private BigDecimal occThreshold;
    }