package com.chinaweal.aiccs.aiccs.temp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 业务暂存表
 * </p>
 *
 * @author sh
 * @since 2023-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("temporary_save")
public class TemporarySave extends Model<TemporarySave> {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
      private String id;

    /**
     * 业务号
     */
    @TableField("BIZSEQ")
    private String bizseq;

    /**
     * 业务模块标识
     */
    private String moduleTag;

    /**
     * 流程标识
     */
    private String flowTag;

    /**
     * 暂存数据
     */
    private String dataJson;

    /**
     * 0:作废，1:暂存，2:暂存失效
     */
    private String state;

    /**
     * 暂存操作人
     */
    private String creator;

    /**
     * 暂存操作人id
     */
    private String creatorId;

    /**
     * 暂存时间
     */
    private LocalDateTime saveTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
