package com.inspect.job.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysJobLog extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @Excel(
            name = "日志序号"
    )
    private Long jobLogId;
    @Excel(
            name = "任务名称"
    )
    private String jobName;
    @Excel(
            name = "任务组名"
    )
    private String jobGroup;
    @Excel(
            name = "调用目标字符串"
    )
    private String invokeTarget;
    @Excel(
            name = "日志信息"
    )
    private String jobMessage;
    @Excel(
            name = "执行状态",
            readConverterExp = "0=正常,1=失败"
    )
    private String status;
    @Excel(
            name = "异常信息"
    )
    private String exceptionInfo;
    private Date startTime;
    private Date stopTime;

    @Override
    public String toString() {
        return "SysJobLog{" +
                "jobLogId=" + jobLogId +
                ", jobName='" + jobName + '\'' +
                ", jobGroup='" + jobGroup + '\'' +
                ", invokeTarget='" + invokeTarget + '\'' +
                ", jobMessage='" + jobMessage + '\'' +
                ", status='" + status + '\'' +
                ", exceptionInfo='" + exceptionInfo + '\'' +
                ", startTime=" + startTime +
                ", stopTime=" + stopTime +
                '}';
    }
}
