# MarketSegmentDTO.java

    package cloud.wconnect.workperformance.pojo.dto.monthlyreport.marketsegment;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;

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

    /**
     * Market Mix区域dto
     *
     * @author lichen
     * @date 2023/9/2
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public class MarketSegmentDTO {

        /**
         * 市场项目
         */
        @NotBlank(message = "The segment cannot be blank")
        @Length(max = 100, message = "The segment is limited 255 characters")
        private String segment;

        /**
         * 今年房间数
         */
        @NotNull(message = "The rooms cannot be null")
        private Integer rooms;

        /**
         * 今年单个房间价格
         */
        @NotNull(message = "The adr cannot be null")
        @DigitsCustom(integer = 10, message = "The adr is wrong format")
        private BigDecimal adr;

        /**
         * 去年同月房间数
         */
        @NotNull(message = "The lastRooms cannot be null")
        private Integer lastRooms;

        /**
         * 去年同月单个房间价格
         */
        @NotNull(message = "The lastAdr cannot be null")
        @DigitsCustom(integer = 10, message = "The lastAdr is wrong format")
        private BigDecimal lastAdr;

    }