# CompRoomComplimentary.java

    package cloud.wconnect.frontoffice.entity.comproom;

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

    /**
     * <p>
     * comp room功能，存储Guests In-House Complimentary报告中的数据
     * </p>
     *
     * @author lichen
     * @since 2023-08-05
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class CompRoomComplimentary implements Serializable {

        private static final long serialVersionUID = 1L;

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

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

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

        /**
         * 房间类型
         */
        private String roomType;

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

        /**
         * 客人姓名ID
         */
        private String guestNameId;

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

        /**
         * 离开日期
         */
        private Long checkOutDate;

        /**
         * 成年人数
         */
        private Integer adultsNumber;

        /**
         * 儿童人数
         */
        private Integer childrenNumber;

        /**
         * 备注 json数组：["备注1","备注2"]
         */
        private String comments;

        /**
         * 报告日期
         */
        private Long theDate;

        /**
         * 同步时间
         */
        private Long syncTime;

        /**
         * 关联的手动申请的免费房（表rq_comp_room_form_v2）数据ID。0表示未关联
         */
        private Long relId;

        /**
         * 用checkInDate propertyId roomNumber生成唯一的key
         *
         * @return java.lang.String
         * @author lichen
         * @date 2023/8/5
         */
        public String generateKey(){
            return this.propertyId + "_" + this.checkInDate + "_" + this.roomNumber;
        }

    }