# OooRoom.java

    package cloud.wconnect.frontoffice.entity.oooroom;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;
    import org.apache.commons.codec.digest.DigestUtils;
    import org.apache.commons.codec.digest.MessageDigestAlgorithms;
    import org.apache.commons.lang3.StringUtils;

    import java.io.Serializable;

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

        private static final long serialVersionUID = 1L;

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

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

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

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

        /**
         * 开始日期
         */
        private Long fromDate;

        /**
         * 预计结束日期
         */
        private Long toDate;

        /**
         * 实际完成日期
         */
        private Long completedDate;

        /**
         * 备注
         */
        private String remarks;

        /**
         * 自动同步数据的唯一key
         */
        private String uniqKeyForSync;

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

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

        /**
         * 最近更新人id
         */
        private Integer updatedBy;

        /**
         * 最近更新时间
         */
        private Long updatedTime;

        /**
         * 完成人id
         */
        private Integer completedBy;

        /**
         * 完成时间
         */
        private Long completedTime;

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

        /**
         * 唯一key
         */
        public void setUniqKey() {
            this.uniqKeyForSync = new DigestUtils(MessageDigestAlgorithms.MD5).digestAsHex(StringUtils.join(this.propertyId,
                    this.roomNumbers, this.roomType, this.fromDate, this.toDate, this.completedDate, this.remarks));
        }

    }