package com.njcn.rdms.module.project.dal.dataobject.job;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.rdms.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * RDMS 任务运行日志表
 */
@TableName("rdms_work_report_job_run_log")
@Data
@EqualsAndHashCode(callSuper = true)
public class JobRunLogDO extends BaseDO {

    @TableId
    private Long id;

    private String runId;

    private String jobName;

    private String jobStatus;

    private LocalDate runDate;

    private String periodKey;

    private String triggerSource;

    private String nodeName;

    private LocalDateTime startedAt;

    private LocalDateTime finishedAt;

    private Integer successCount;

    private Integer skipCount;

    private Integer failCount;

    private Long costMs;

    private String message;
}
