# AcApi.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>
     * api 报告数据
     * </p>
     *
     * @author zc
     * @since 2023-08-04
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("ac_api")
    public class AcApi 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;

        /**
         * Invoice #
         */
        private String invoiceNo;

        /**
         * Airline
         */
        private String airline;

        /**
         * Conf. No.
         */
        private String confNo;

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

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

        /**
         * 入住日期时间戳
         */
        private Long checkIn;

        /**
         * Nights
         */
        private Integer nights;

        /**
         * Total Room
         */
        private Integer totalRoom;

        /**
         * Room Costs (Room Amounts)
         */
        private BigDecimal roomCosts;

        /**
         * 状态 （1.Missing in PMS; 2.No Record in PMS; 3.Matched; 4.Pay & Close）
         */
        private Integer status;

        /**
         * 状态变更人 id
         */
        private Integer statusUpdatedBy;

        /**
         * 状态变更时间
         */
        private Long statusUpdatedTime;

        /**
         * 修改状态 之前的状态，undo 时使用
         */
        private Integer oldStatus;

        /**
         * 旧状态 操作人
         */
        private Integer oldStatusUpdatedBy;

        /**
         * 旧状态操作时间
         */
        private Long oldStatusUpdatedTime;

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

        /**
         * checkInAndName
         *
         * @return checkInAndName
         * @author zc
         * @date 2023/08/09
         */
        public String getCheckInAndName() {
            return this.checkIn + "&" + this.firstName + "&" + this.lastName;
        }

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

    }