# ClcSiteData.java

    package cloud.wconnect.frontoffice.entity.clc;

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

    import java.io.Serializable;

    /**
     * <p>
     *
     * </p>
     *
     * @author yyt
     * @since 2023-07-24
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class ClcSiteData implements Serializable {

        private static final long serialVersionUID = 1L;

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

        /**
         * 资产 id
         */
        @TableField("hotel_id")
        private Integer propertyId;

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

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

        /**
         * 房间号
         */
        private String roomNumber;

        /**
         * 客人姓名
         */
        private String customer;

        /**
         * Folio No.
         */
        private String folioNumber;

        /**
         * 房价
         */
        private String rate;

        /**
         * 过夜次数
         */
        private Integer nights;

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

        /**
         * 是否退房；0标识退房，1标识未退房
         */
        private Boolean clickCheckOut;

        /**
         * CLC 记录已经 checkout
         */
        public static final int CHECK_OUT_YES = 0;

        /**
         * CLC 记录未 checkout
         */
        public static final int CHECK_OUT_NO = 1;

        public String getUniKey() {
            return this.roomNumber + "&" + this.checkInDate + "&" + this.customer.toLowerCase().trim();
        }

    }