Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
93359a69
Commit
93359a69
authored
Dec 20, 2019
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改表结构】添加任务流显示表依赖工作流的关联表
parent
7c734b57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
2 deletions
+36
-2
MythJobFlowCurrent.java
...core/src/main/java/com/byit/model/MythJobFlowCurrent.java
+10
-0
MythJobFlowDependent.java
...re/src/main/java/com/byit/model/MythJobFlowDependent.java
+24
-0
MythJobFlowRunRecording.java
...src/main/java/com/byit/model/MythJobFlowRunRecording.java
+2
-2
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/MythJobFlowCurrent.java
View file @
93359a69
...
@@ -98,4 +98,14 @@ public class MythJobFlowCurrent {
...
@@ -98,4 +98,14 @@ public class MythJobFlowCurrent {
*/
*/
@Column
(
columnDefinition
=
"char(1) COMMENT '执行类型 周期执行1 手动执行2'"
)
@Column
(
columnDefinition
=
"char(1) COMMENT '执行类型 周期执行1 手动执行2'"
)
private
String
execType
;
private
String
execType
;
/**
* 是否有下游节点 0 否,1 是
*/
@Column
(
columnDefinition
=
"char(1) COMMENT '是否有下游节点 0 否,1 是'"
)
private
String
isHaveDepend
;
/**
* 是否是顶级工作流 0 是, 1 是
*/
@Column
(
columnDefinition
=
"char(1) COMMENT '是否是顶级工作流 0 是, 1 是'"
)
private
String
isTop
;
}
}
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/MythJobFlowDependent.java
0 → 100644
View file @
93359a69
package
com
.
byit
.
model
;
import
lombok.*
;
import
javax.persistence.*
;
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@Builder
@Entity
@Table
(
name
=
"job_flow_dependent"
)
@org
.
hibernate
.
annotations
.
Table
(
appliesTo
=
"job_flow_dependent"
,
comment
=
"任务流的关联表,现实表"
)
public
class
MythJobFlowDependent
{
@Id
@Column
(
nullable
=
false
,
columnDefinition
=
"int(13) COMMENT '工作流Id'"
)
private
Integer
flowId
;
@Id
@Column
(
nullable
=
false
,
columnDefinition
=
"int(13) COMMENT '上游依赖的工作流Id'"
)
private
Integer
dependFlowId
;
}
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/MythJobFlowRunRecording.java
View file @
93359a69
...
@@ -54,7 +54,7 @@ public class MythJobFlowRunRecording {
...
@@ -54,7 +54,7 @@ public class MythJobFlowRunRecording {
/**
/**
* 1 未开始 2运行 3暂停 4结束
* 1 未开始 2运行 3暂停 4结束
*/
*/
@Column
(
nullable
=
false
,
columnDefinition
=
"char(1) COMMENT '1 未开始 2运行
3暂停 4结束
'"
)
@Column
(
nullable
=
false
,
columnDefinition
=
"char(1) COMMENT '1 未开始 2运行
中 3暂停 4成功 5失败
'"
)
private
String
flowStatus
;
private
String
flowStatus
;
/**
/**
* 本次任务的执行时间
* 本次任务的执行时间
...
@@ -94,7 +94,7 @@ public class MythJobFlowRunRecording {
...
@@ -94,7 +94,7 @@ public class MythJobFlowRunRecording {
/**
/**
* 调度状态:0-暂停,1-运行
* 调度状态:0-暂停,1-运行
*/
*/
@Column
(
columnDefinition
=
"char(1) COMMENT '调度状态:0-
暂停,1-运行
'"
)
@Column
(
columnDefinition
=
"char(1) COMMENT '调度状态:0-
未开始,1-调度成功, 2-调度失败
'"
)
private
String
triggerStatus
;
private
String
triggerStatus
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment