# TaOta.java

    package cloud.wconnect.finance.entity.ta;

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

    import java.io.Serializable;

    /**
     * <p>
     * OTA
     * </p>
     *
     * @author zc
     * @since 2023-07-19
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class TaOta implements Serializable {

        private static final long serialVersionUID = 1L;

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

        private Integer propertyId;

        /**
         * 客人标识
         */
        private String name;

        /**
         * 入住日期
         */
        private Long arrivalDate;

        /**
         * 退房日期
         */
        private Long departureDate;

        /**
         * 数据日期
         */
        private Long dataDate;

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

        /**
         * 签名(name,arrival_date,departure_date)
         */
        private String infoSign;

        /**
         * 拼接对比 OTA 的字符串
         *
         * @return 对比字符串
         * @author zc
         * @date 2023/07/25
         */
        public String getContrastOtaStr() {
            return this.arrivalDate + "&" + this.departureDate + "&" + (this.name == null ? "" : this.name.replaceAll("\\s", ""));
        }

    }