# AdjApproveLog.java

    package cloud.wconnect.frontoffice.entity.adjustment;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.io.Serializable;

    import lombok.*;
    import lombok.experimental.Accessors;

    /**
     * <p>
     * Adjustment Requests 审批日志表
     * </p>
     *
     * @author lichen
     * @since 2023-03-30
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public class AdjApproveLog implements Serializable {

        private static final long serialVersionUID = 1L;

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

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

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

        /**
         * Adjustment Requests ID
         */
        private Long adjId;

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

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

        /**
         * 审批人
         */
        private Integer approveBy;

        /**
         * 审批状态：2-退回 3-同意 4-拒绝
         */
        private Integer approveStatus;

        /**
         * 审批时间
         */
        private Long approveTime;

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

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