# SegmentDTO.java

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

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;

    import jakarta.validation.constraints.Min;
    import jakarta.validation.constraints.NotNull;
    import java.math.BigDecimal;

    /**
     * DTO: Segment
     *
     * @author yyt
     * 2023/10/26
     */
    @Data
    public class SegmentDTO {

        /**
         * segment id
         */
        @NotNull(message = "the segmentId must not be null")
        private Integer segmentId;

        /**
         * segment 名称
         */
        private String segment;

        /**
         * OTB Revenue
         */
        @DigitsCustom(integer = 10, message = "the otbRevenue is wrong format")
        @Min(value = 0, message = "the otbRevenue min value is 0")
        private BigDecimal otbRevenue;

        /**
         * ADR
         */
        private BigDecimal adr;

        /**
         * Budget
         */
        @DigitsCustom(integer = 10, message = "the budget is wrong format")
        @Min(value = 0, message = "the budget min value is 0")
        private BigDecimal budget;

        /**
         * Achievement
         */
        private BigDecimal achievement;

        /**
         * Pick-up from last report
         */
        private BigDecimal pickup;

    }