# NotifiedBadGuest.java

    package cloud.wconnect.frontoffice.entity.badguest;

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

    /**
     * <p>
     * 黑名单用户已发送邮件记录
     * </p>
     *
     * @author lichen
     * @since 2023-03-23
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class NotifiedBadGuest implements Serializable {

        private static final long serialVersionUID = 1L;

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

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

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

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

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

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

        /**
         * 匹配黑名单记录id，多个逗号隔开
         */
        private String matchedIds;

        /**
         * 创建人
         */
        private Integer createdBy;

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

        /**
         * 生成分组时用的Key
         */
        public String generateGroupKey() {
            return this.firstName.toLowerCase() + ":" + this.lastName.toLowerCase() + ":" + this.checkInDate;
        }

    }