package cn.cslg.report.entity;

import cn.cslg.report.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 导入任务表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "IMPORT_TASK")
public class ImportTask extends BaseEntity<ImportTask> {
    /**
     * 文件名
     */
    @TableField(value = "TASK_NAME")
    private String taskName;

    /**
     * 报告ID
     */
    @TableField(value = "REPORT_ID")
    private Integer reportId;

    /**
     * 导入数量
     */
    @TableField(value = "IMPORT_COUNT")
    private Integer importCount;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_DATE")
    private Date createDate;

    /**
     * 结束时间
     */
    @TableField(value = "FINISH_TIME")
    private Date finishTime;

    /**
     * 创建人Id
     */
    @TableField(value = "CREATE_USER_ID")
    private Integer createUserId;
    /**
     * 创建人名
     */
    @TableField(value = "CREATE_USER_NAME")
    private String createUserName;
    /**
     * 文件路径
     */
    @TableField(value = "FILE_PATH")
    private String filePath;

    /**
     * 状态
     */
    @TableField(value = "STATE")
    private Integer state;
    /**
     * 每页条数
     */
    @Schema(description = "每页条数")
    @TableField(exist = false)
    private Integer size;

    /**
     * 当前页数
     */
    @Schema(description = "当前页数")
    @TableField(exist = false)
    private Integer current;


    @TableField(value = "TYPE")
    private Integer importType;
    @TableField(exist = false)
    private List<Integer> createIds;
}
