Commit e2a23556 by huangfusuper

【代码重构】重新设计编写执行记录表

parent 81d60633
package com.byit.model;
import lombok.*;
import javax.persistence.*;
/**
* @program: byit-myth-job->MythJobFlowRunRecording
* @description: 任务流的执行记录表
* @author: huangfu
* @date: 2019/12/19 20:08
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@Builder
@Entity
@Table(name = "job_flow_run_recording")
@org.hibernate.annotations.Table(appliesTo = "job_flow_run_recording",comment="任务流的执行记录表")
public class MythJobFlowRunRecording {
/**
* 当前版本工作流主键
*/
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
@Column(nullable = false,columnDefinition = "int(13) COMMENT '记录主键'")
private Integer recordingId;
/**
* 工作流的名字
*/
@Column(nullable = false,columnDefinition = "varchar(255) COMMENT '工作流的名字'")
private String flowName;
/**
* 节点数量
*/
@Column(nullable = false,columnDefinition = "int(13) COMMENT '节点数量'")
private Integer nodeCount;
/**
* 工作流的版本id
*/
@Column(nullable = false,columnDefinition = "int(13) COMMENT '工作流的版本id'")
private Integer flowVersionId;
/**
* 工作流的超时时间
*/
@Column(nullable = false,columnDefinition = "bigint(20) COMMENT '工作流的超时时间'")
private Long flowTimeout;
/**
* 初始值为节点总数,每次一个节点运行成功就将总数-1
*/
@Column(nullable = false,columnDefinition = "int(13) COMMENT '初始值为节点总数,每次一个节点运行完就将总数-1'")
private Integer remainingNode;
/**
* 1 未开始 2运行 3暂停 4结束
*/
@Column(nullable = false,columnDefinition = "char(1) COMMENT '1 未开始 2运行 3暂停 4结束'")
private String flowStatus;
/**
* 本次任务的执行时间
*/
@Column(nullable = false,columnDefinition = "bigint(20) COMMENT '本次任务的执行时间'")
private Long triggerTime;
/**
* 执行结果
*/
@Column(columnDefinition = "char(1) COMMENT '执行结果'")
private String flowRunResult;
/**
* 被哪一个调度器加载的
*/
@Column(columnDefinition = "varchar(36) COMMENT '被哪一个调度器加载的'")
private String dispatch_ip;
/**
* 运行标识
*/
@Column(columnDefinition = "varchar(36) COMMENT '运行标识'")
private String RunId;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment