package com.template.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 数据源操作日志
 * </p>
 *
 * @author ceshi
 * @since 2023-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SmartDataTaskLog对象", description="数据源任务日志")
public class SmartDataTaskLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务日志id")
    @TableId(value = "tk_log_id", type = IdType.AUTO)
    private Integer tkLogId;

    @ApiModelProperty(value = "任务id")
    private Integer tkLogTaskId;

    @ApiModelProperty(value = "任务名称")
    private String tkLogTaskName;

    @ApiModelProperty(value = "部门名称")
    private String tkLogDtName;

    @ApiModelProperty(value = "来源库id")
    private Integer tkLogDsSourceId;

    @ApiModelProperty(value = "来源库")
    private String tkLogDsSourceName;

    @ApiModelProperty(value = "目标库id")
    private Integer tkLogDsDestinationId;

    @ApiModelProperty(value = "目标库")
    private String tkLogDsDestinationName;

    @ApiModelProperty(value = "目标表")
    private String tkLogDestTable;

    @ApiModelProperty(value = "交换服务器")
    private String tkLogExchangeServer;

    @ApiModelProperty(value = "交换方式")
    private String tkLogExchangeType;

    @ApiModelProperty(value = "执行标识")
    private String tkLogAutoManual;

    @ApiModelProperty(value = "执行方式")
    private String tkLogExeType;

    @ApiModelProperty(value = "执行状态")
    private String tkLogExeStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "执行开始时间")
    private String tkLogStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "执行结束时间")
    private String tkLogEndTime;

    @ApiModelProperty(value = "耗时")
    private String tkLogCostTime;

    @ApiModelProperty(value = "读取数据量")
    private Integer tkLogReadRows;

    @ApiModelProperty(value = "增加数据量")
    private Integer tkLogInsertRows;

    @ApiModelProperty(value = "更新数据量")
    private Integer tkLogUpdateRows;

    @ApiModelProperty(value = "错误数据量")
    private Integer tkLogErrRows;

    @ApiModelProperty(value = "异常")
    private String tkLogErrException;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private String tkLogCreateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private String tkLogUpdateTime;
}
