package com.sptg.permissions.api.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * @author WFT
 * @date 2020/5/29
 * description: 导入表格时出现的异常
 */
@Getter
@Setter
@NoArgsConstructor
@TableName(value = "import_excel_error")
public class ImportExcelError implements java.io.Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.ID_WORKER)
    private Long id;

    /**
     * 标记
     */
    private String flag;

    /**
     * 异常信息
     */
    private String error;

    /**
     * 异常数据
     */
    private String data;

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

    public ImportExcelError(String flag, String error, String data) {
        this.flag = flag;
        this.error = error;
        this.data = data;
    }
}
