# AcOtaListBO.java

    package cloud.wconnect.finance.pojo.bo.api.ota;

    import cloud.wconnect.commonlib.annotation.validator.DigitsInteger;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

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

    /**
     * BO: OTA List
     *
     * @author zc
     * @date 2023/08/09
     */
    @Data
    public class AcOtaListBO {

        /**
         * Crs #
         */
        @Length(max = 20, message = "The crsNo is limited 20 characters")
        private String crsNo;

        /**
         * First Name
         */
        @Length(max = 255, message = "The firstName is limited 255 characters")
        private String firstName;

        /**
         * Last Name
         */
        @NotBlank(message = "The lastName cannot be blank")
        @Length(max = 255, message = "The lastName is limited 255 characters")
        private String lastName;

        /**
         * 入住日期
         */
        @NotBlank(message = "The arrivalDateStr cannot be blank")
        @Length(max = 20, message = "The arrivalDateStr is limited 20 characters")
        private String arrivalDateStr;

        /**
         * 离开日期
         */
        @NotBlank(message = "The departureDateStr cannot be blank")
        @Length(max = 20, message = "The departureDateStr is limited 20 characters")
        private String departureDateStr;

        /**
         * Room Revenue
         */
        @NotNull(message = "The roomRevenue cannot be null")
        @DigitsInteger(integer = 7, message = "The roomRevenue is wrong format")
        private BigDecimal roomRevenue;

        /**
         * Nights
         */
        @NotNull(message = "The nights cannot be null")
        @Range(min = 0, max = 999, message = "The nights must be between 0 and 999")
        private Integer nights;

    }