# BadGuestApproveLog.java

    package cloud.wconnect.frontoffice.entity.badguest;

    import java.io.Serializable;

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

    /**
     * <p>
     *
     * </p>
     *
     * @author lichen
     * @since 2023-03-21
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public class BadGuestApproveLog implements Serializable {

        private static final long serialVersionUID = 1L;

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

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

        /**
         * 批次id，一次完整的流程一个批次
         */
        private Long batchId;

        /**
         * 黑名单记录ID
         */
        private Long guestId;

        /**
         * 审批节点ID
         */
        private Long levelId;

        /**
         * 审批层级索引
         */
        private Integer approveIndex;

        /**
         * 审批人
         */
        private Integer approveBy;
        /**
         * 是否审核通过
         */
        private Boolean isApproved;
        /**
         * 审批时间
         */
        private Long approveTime;

        /**
         * 审批意见
         */
        private String approveOpinion;

        public String generateKey(){
            return new StringBuilder().append(this.approveBy).append(this.levelId).toString();
        }

    }