# AcOta.java

    package cloud.wconnect.finance.entity.api;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

    import java.io.Serializable;
    import java.math.BigDecimal;

    /**
     * <p>
     * ota 报告数据
     * </p>
     *
     * @author zc
     * @since 2023-08-04
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("ac_opera")
    public class AcOta implements Serializable {

        private static final long serialVersionUID = 1L;

        @TableId(value = "id", type = IdType.AUTO)
        private Long id;

        /**
         * 资产 id
         */
        private Integer propertyId;

        /**
         * Batch #
         */
        private String batchNo;

        /**
         * CRS#
         */
        private String crsNo;

        /**
         * First Name
         */
        private String firstName;

        /**
         * Last Name
         */
        private String lastName;

        /**
         * Arrival Date
         */
        private Long arrivalDate;

        /**
         * Departure Date
         */
        private Long departureDate;

        /**
         * Room Revenue
         */
        private BigDecimal roomRevenue;

        /**
         * Number of Nights
         */
        private Integer nights;

        /**
         * 匹配到的 api 数据 id，未匹配到数据时为 0
         */
        private Long apiId;

        /**
         * 创建时间
         */
        private Long createdTime;

        /**
         * arrivalDateAndLastName
         *
         * @return arrivalDateAndLastName
         * @author zc
         * @date 2023/08/09
         */
        public String getArrivalDateAndLastName() {
            return this.arrivalDate + "&" + this.lastName.toLowerCase();
        }
    }