package com.erp.task.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 任务执行记录DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TaskExecutionLogDTO {

    private Long id;

    private Long taskId;

    private String taskName;

    private String taskGroup;

    private String batchNo;

    private LocalDateTime triggerTime;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private String status;

    private Long duration;

    private String executorNode;

    private String result;

    private String errorTrace;

    private Integer retryCount;

    private Boolean isRetry;

    private String taskParams;

    private LocalDateTime createdAt;
}
