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
6ff0a7cc
Commit
6ff0a7cc
authored
Dec 24, 2019
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【表增加字段】增加表字段
parent
25014132
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
340 additions
and
178 deletions
+340
-178
pom.xml
byit-myth-core/myth-admin-core/pom.xml
+0
-4
JobFlowNodeMapper.java
...core/src/main/java/com/byit/mapper/JobFlowNodeMapper.java
+2
-1
JobFlowNodeVersionMapper.java
...c/main/java/com/byit/mapper/JobFlowNodeVersionMapper.java
+2
-1
JobFlow.java
...myth-admin-core/src/main/java/com/byit/model/JobFlow.java
+14
-0
JobFlowNode.java
...-admin-core/src/main/java/com/byit/model/JobFlowNode.java
+12
-0
JobFlowNodeVersion.java
...core/src/main/java/com/byit/model/JobFlowNodeVersion.java
+14
-2
JobFlowRunRecording.java
...ore/src/main/java/com/byit/model/JobFlowRunRecording.java
+14
-0
JobFlowVersion.java
...min-core/src/main/java/com/byit/model/JobFlowVersion.java
+7
-0
JobTask.java
...myth-admin-core/src/main/java/com/byit/model/JobTask.java
+13
-0
JobTaskSchedule.java
...in-core/src/main/java/com/byit/model/JobTaskSchedule.java
+13
-0
Generator-config.xml
...e/myth-admin-core/src/main/resources/Generator-config.xml
+5
-1
JobFlowMapper.xml
...th-admin-core/src/main/resources/mapper/JobFlowMapper.xml
+38
-14
JobFlowNodeMapper.xml
...dmin-core/src/main/resources/mapper/JobFlowNodeMapper.xml
+43
-15
JobFlowNodeVersionMapper.xml
...re/src/main/resources/mapper/JobFlowNodeVersionMapper.xml
+42
-17
JobFlowRunRecordingMapper.xml
...e/src/main/resources/mapper/JobFlowRunRecordingMapper.xml
+37
-14
JobFlowVersionMapper.xml
...n-core/src/main/resources/mapper/JobFlowVersionMapper.xml
+35
-23
JobTaskMapper.xml
...th-admin-core/src/main/resources/mapper/JobTaskMapper.xml
+23
-3
JobTaskScheduleMapper.xml
...-core/src/main/resources/mapper/JobTaskScheduleMapper.xml
+26
-83
No files found.
byit-myth-core/myth-admin-core/pom.xml
View file @
6ff0a7cc
...
...
@@ -61,10 +61,6 @@
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-jpa
</artifactId>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/JobFlowNodeMapper.java
View file @
6ff0a7cc
...
...
@@ -13,7 +13,7 @@ public interface JobFlowNodeMapper {
int
updateByIdSelective
(
JobFlowNode
record
);
int
updateBy
PrimaryKey
WithBLOBs
(
JobFlowNode
record
);
int
updateBy
Id
WithBLOBs
(
JobFlowNode
record
);
int
updateById
(
JobFlowNode
record
);
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/JobFlowNodeVersionMapper.java
View file @
6ff0a7cc
...
...
@@ -13,7 +13,7 @@ public interface JobFlowNodeVersionMapper {
int
updateByIdSelective
(
JobFlowNodeVersion
record
);
int
updateBy
PrimaryKey
WithBLOBs
(
JobFlowNodeVersion
record
);
int
updateBy
Id
WithBLOBs
(
JobFlowNodeVersion
record
);
int
updateById
(
JobFlowNodeVersion
record
);
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobFlow.java
View file @
6ff0a7cc
...
...
@@ -3,6 +3,7 @@ package com.byit.model;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
...
...
@@ -120,6 +121,18 @@ public class JobFlow implements Serializable {
private
Integer
workspaceId
;
/**
* 创建人
*/
@ApiModelProperty
(
"创建人"
)
private
String
author
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
addTime
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobFlowNode.java
View file @
6ff0a7cc
...
...
@@ -193,6 +193,18 @@ public class JobFlowNode implements Serializable {
private
Long
triggerNextTime
;
/**
* 创建人
*/
@ApiModelProperty
(
"创建人"
)
private
String
author
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
addTime
;
/**
* 源码
*/
@ApiModelProperty
(
"源码"
)
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobFlowNodeVersion.java
View file @
6ff0a7cc
...
...
@@ -145,9 +145,9 @@ public class JobFlowNodeVersion implements Serializable {
private
String
removeMark
;
/**
* 当前节点总共重复次数
* 当前节点总共重复次数
(默认为-1,不限制)
*/
@ApiModelProperty
(
"当前节点总共重复次数"
)
@ApiModelProperty
(
"当前节点总共重复次数
(默认为-1,不限制)
"
)
private
Integer
repeatCount
;
/**
...
...
@@ -205,6 +205,18 @@ public class JobFlowNodeVersion implements Serializable {
private
String
versionMark
;
/**
* 节点的作者
*/
@ApiModelProperty
(
"节点的作者"
)
private
String
author
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
addTime
;
/**
* 源码
*/
@ApiModelProperty
(
"源码"
)
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobFlowRunRecording.java
View file @
6ff0a7cc
...
...
@@ -3,6 +3,7 @@ package com.byit.model;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
...
...
@@ -102,6 +103,18 @@ public class JobFlowRunRecording implements Serializable {
private
Long
triggerTime
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
addTime
;
/**
* 创建人
*/
@ApiModelProperty
(
"创建人"
)
private
String
author
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobFlowVersion.java
View file @
6ff0a7cc
...
...
@@ -121,6 +121,12 @@ public class JobFlowVersion implements Serializable {
private
Integer
workspaceId
;
/**
* 创建人
*/
@ApiModelProperty
(
"创建人"
)
private
String
author
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobTask.java
View file @
6ff0a7cc
...
...
@@ -216,6 +216,18 @@ public class JobTask implements Serializable {
private
String
runSource
;
/**
* 创建人
*/
@ApiModelProperty
(
"创建人"
)
private
String
author
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
addTime
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobTaskSchedule.java
View file @
6ff0a7cc
...
...
@@ -223,6 +223,18 @@ public class JobTaskSchedule implements Serializable {
private
String
runSource
;
/**
* 创建人
*/
@ApiModelProperty
(
"创建人"
)
private
String
author
;
/**
* 创建时间
*/
@ApiModelProperty
(
"创建时间"
)
private
Date
addTime
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/Generator-config.xml
View file @
6ff0a7cc
...
...
@@ -55,7 +55,11 @@
type=
"XMLMAPPER"
>
<property
name=
"enableSubPackages"
value=
"false"
/>
</javaClientGenerator>
<table
tableName=
"job_task_schedule"
domainObjectName=
"JobTaskSchedule"
/>
<table
tableName=
"job_flow_current"
domainObjectName=
"JobFlow"
/>
<table
tableName=
"job_flow_node_current"
domainObjectName=
"JobFlowNode"
/>
<table
tableName=
"job_flow_node_version"
domainObjectName=
"JobFlowNodeVersion"
/>
<table
tableName=
"job_flow_run_recording"
domainObjectName=
"JobFlowRunRecording"
/>
<table
tableName=
"job_flow_version"
domainObjectName=
"JobFlowVersion"
/>
</context>
</generatorConfiguration>
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobFlowMapper.xml
View file @
6ff0a7cc
...
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.byit.mapper.JobFlowMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.byit.model.JobFlow"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
<id
column=
"flow_id"
jdbcType=
"INTEGER"
property=
"flowId"
/>
<result
column=
"alarm_email"
jdbcType=
"VARCHAR"
property=
"alarmEmail"
/>
<result
column=
"exec_type"
jdbcType=
"CHAR"
property=
"execType"
/>
...
...
@@ -21,44 +21,47 @@
<result
column=
"repeat_count"
jdbcType=
"INTEGER"
property=
"repeatCount"
/>
<result
column=
"trigger_next_time"
jdbcType=
"BIGINT"
property=
"triggerNextTime"
/>
<result
column=
"workspace_id"
jdbcType=
"INTEGER"
property=
"workspaceId"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
flow_id, alarm_email, exec_type, flow_cron, flow_desc, flow_name, flow_node_count,
flow_timeout, is_have_depend, is_inner, is_top, mail_action, node_date_is_follow_flow,
priority, remaining_count, repeat_count, trigger_next_time, workspace_id
priority, remaining_count, repeat_count, trigger_next_time, workspace_id, author,
add_time
</sql>
<select
id=
"getById"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
select
<include
refid=
"Base_Column_List"
/>
from job_flow_current
where flow_id = #{flowId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
delete from job_flow_current
where flow_id = #{flowId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.byit.model.JobFlow"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_current (flow_id, alarm_email, exec_type,
flow_cron, flow_desc, flow_name,
flow_node_count, flow_timeout, is_have_depend,
is_inner, is_top, mail_action,
node_date_is_follow_flow, priority, remaining_count,
repeat_count, trigger_next_time, workspace_id
)
repeat_count, trigger_next_time, workspace_id
,
author, add_time
)
values (#{flowId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{execType,jdbcType=CHAR},
#{flowCron,jdbcType=VARCHAR}, #{flowDesc,jdbcType=VARCHAR}, #{flowName,jdbcType=VARCHAR},
#{flowNodeCount,jdbcType=INTEGER}, #{flowTimeout,jdbcType=BIGINT}, #{isHaveDepend,jdbcType=CHAR},
#{isInner,jdbcType=CHAR}, #{isTop,jdbcType=CHAR}, #{mailAction,jdbcType=CHAR},
#{nodeDateIsFollowFlow,jdbcType=CHAR}, #{priority,jdbcType=CHAR}, #{remainingCount,jdbcType=INTEGER},
#{repeatCount,jdbcType=INTEGER}, #{triggerNextTime,jdbcType=BIGINT}, #{workspaceId,jdbcType=INTEGER}
)
#{repeatCount,jdbcType=INTEGER}, #{triggerNextTime,jdbcType=BIGINT}, #{workspaceId,jdbcType=INTEGER}
,
#{author,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobFlow"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_current
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"flowId != null"
>
...
...
@@ -115,6 +118,12 @@
<if
test=
"workspaceId != null"
>
workspace_id,
</if>
<if
test=
"author != null"
>
author,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"flowId != null"
>
...
...
@@ -171,10 +180,16 @@
<if
test=
"workspaceId != null"
>
#{workspaceId,jdbcType=INTEGER},
</if>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByIdSelective"
parameterType=
"com.byit.model.JobFlow"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_current
<set>
<if
test=
"alarmEmail != null"
>
...
...
@@ -228,11 +243,17 @@
<if
test=
"workspaceId != null"
>
workspace_id = #{workspaceId,jdbcType=INTEGER},
</if>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
</set>
where flow_id = #{flowId,jdbcType=INTEGER}
</update>
<update
id=
"updateById"
parameterType=
"com.byit.model.JobFlow"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_current
set alarm_email = #{alarmEmail,jdbcType=VARCHAR},
exec_type = #{execType,jdbcType=CHAR},
...
...
@@ -250,7 +271,9 @@
remaining_count = #{remainingCount,jdbcType=INTEGER},
repeat_count = #{repeatCount,jdbcType=INTEGER},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
workspace_id = #{workspaceId,jdbcType=INTEGER}
workspace_id = #{workspaceId,jdbcType=INTEGER},
author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}
where flow_id = #{flowId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobFlowNodeMapper.xml
View file @
6ff0a7cc
...
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.byit.mapper.JobFlowNodeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.byit.model.JobFlowNode"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
<id
column=
"node_id"
jdbcType=
"INTEGER"
property=
"nodeId"
/>
<result
column=
"alarm_email"
jdbcType=
"VARCHAR"
property=
"alarmEmail"
/>
<result
column=
"block_strategy"
jdbcType=
"VARCHAR"
property=
"blockStrategy"
/>
...
...
@@ -33,25 +33,28 @@
<result
column=
"source_principal"
jdbcType=
"VARCHAR"
property=
"sourcePrincipal"
/>
<result
column=
"source_update_time"
jdbcType=
"DATE"
property=
"sourceUpdateTime"
/>
<result
column=
"trigger_next_time"
jdbcType=
"BIGINT"
property=
"triggerNextTime"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.byit.model.JobFlowNode"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
<result
column=
"run_source"
jdbcType=
"LONGVARCHAR"
property=
"runSource"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
node_id, alarm_email, block_strategy, callback_token, dependency_nodes, failed_retry_count,
flow_id, follow_task_flow, gateway_token, job_type, local_node_handler_name, mail_action,
node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type, plugin_urls,
priority, remaining_count, repeat_count, retry_interval, routing_strategy, run_param,
run_source_desc, script_urls, source_principal, source_update_time, trigger_next_time
run_source_desc, script_urls, source_principal, source_update_time, trigger_next_time,
author, add_time
</sql>
<sql
id=
"Blob_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
run_source
</sql>
<select
id=
"getById"
parameterType=
"java.lang.Integer"
resultMap=
"ResultMapWithBLOBs"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
select
<include
refid=
"Base_Column_List"
/>
,
...
...
@@ -60,12 +63,12 @@
where node_id = #{nodeId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
delete from job_flow_node_current
where node_id = #{nodeId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.byit.model.JobFlowNode"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_node_current (node_id, alarm_email, block_strategy,
callback_token, dependency_nodes, failed_retry_count,
flow_id, follow_task_flow, gateway_token,
...
...
@@ -76,7 +79,8 @@
repeat_count, retry_interval, routing_strategy,
run_param, run_source_desc, script_urls,
source_principal, source_update_time, trigger_next_time,
run_source)
author, add_time, run_source
)
values (#{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{blockStrategy,jdbcType=VARCHAR},
#{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR}, #{failedRetryCount,jdbcType=INTEGER},
#{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR}, #{gatewayToken,jdbcType=VARCHAR},
...
...
@@ -87,10 +91,11 @@
#{repeatCount,jdbcType=INTEGER}, #{retryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR},
#{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR},
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT},
#{runSource,jdbcType=LONGVARCHAR})
#{author,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{runSource,jdbcType=LONGVARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobFlowNode"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_node_current
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"nodeId != null"
>
...
...
@@ -183,6 +188,12 @@
<if
test=
"triggerNextTime != null"
>
trigger_next_time,
</if>
<if
test=
"author != null"
>
author,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"runSource != null"
>
run_source,
</if>
...
...
@@ -278,13 +289,19 @@
<if
test=
"triggerNextTime != null"
>
#{triggerNextTime,jdbcType=BIGINT},
</if>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"runSource != null"
>
#{runSource,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByIdSelective"
parameterType=
"com.byit.model.JobFlowNode"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_node_current
<set>
<if
test=
"alarmEmail != null"
>
...
...
@@ -374,6 +391,12 @@
<if
test=
"triggerNextTime != null"
>
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
</if>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"runSource != null"
>
run_source = #{runSource,jdbcType=LONGVARCHAR},
</if>
...
...
@@ -381,7 +404,7 @@
where node_id = #{nodeId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.byit.model.JobFlowNode"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_node_current
set alarm_email = #{alarmEmail,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR},
...
...
@@ -412,11 +435,13 @@
source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
source_update_time = #{sourceUpdateTime,jdbcType=DATE},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP},
run_source = #{runSource,jdbcType=LONGVARCHAR}
where node_id = #{nodeId,jdbcType=INTEGER}
</update>
<update
id=
"updateById"
parameterType=
"com.byit.model.JobFlowNode"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_node_current
set alarm_email = #{alarmEmail,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR},
...
...
@@ -446,7 +471,9 @@
script_urls = #{scriptUrls,jdbcType=VARCHAR},
source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
source_update_time = #{sourceUpdateTime,jdbcType=DATE},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT}
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}
where node_id = #{nodeId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobFlowNodeVersionMapper.xml
View file @
6ff0a7cc
...
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.byit.mapper.JobFlowNodeVersionMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.byit.model.JobFlowNodeVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
<id
column=
"node_id"
jdbcType=
"INTEGER"
property=
"nodeId"
/>
<result
column=
"alarm_email"
jdbcType=
"VARCHAR"
property=
"alarmEmail"
/>
<result
column=
"block_strategy"
jdbcType=
"VARCHAR"
property=
"blockStrategy"
/>
...
...
@@ -35,26 +35,28 @@
<result
column=
"source_update_time"
jdbcType=
"DATE"
property=
"sourceUpdateTime"
/>
<result
column=
"trigger_next_time"
jdbcType=
"BIGINT"
property=
"triggerNextTime"
/>
<result
column=
"version_mark"
jdbcType=
"CHAR"
property=
"versionMark"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.byit.model.JobFlowNodeVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
<result
column=
"run_source"
jdbcType=
"LONGVARCHAR"
property=
"runSource"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
node_id, alarm_email, block_strategy, callback_token, dependency_nodes, failed_retry_count,
flow_id, flow_version_id, follow_task_flow, gateway_token, job_type, local_node_handler_name,
mail_action, node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type,
plugin_urls, priority, remove_mark, repeat_count, retry_interval, routing_strategy,
run_param, run_source_desc, script_urls, source_principal, source_update_time, trigger_next_time,
version_mark
version_mark
, author, add_time
</sql>
<sql
id=
"Blob_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
run_source
</sql>
<select
id=
"getById"
parameterType=
"java.lang.Integer"
resultMap=
"ResultMapWithBLOBs"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
select
<include
refid=
"Base_Column_List"
/>
,
...
...
@@ -63,12 +65,12 @@
where node_id = #{nodeId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
delete from job_flow_node_version
where node_id = #{nodeId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.byit.model.JobFlowNodeVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_node_version (node_id, alarm_email, block_strategy,
callback_token, dependency_nodes, failed_retry_count,
flow_id, flow_version_id, follow_task_flow,
...
...
@@ -79,8 +81,8 @@
remove_mark, repeat_count, retry_interval,
routing_strategy, run_param, run_source_desc,
script_urls, source_principal, source_update_time,
trigger_next_time, version_mark,
run_source
)
trigger_next_time, version_mark,
author,
add_time, run_source
)
values (#{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{blockStrategy,jdbcType=VARCHAR},
#{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR}, #{failedRetryCount,jdbcType=INTEGER},
#{flowId,jdbcType=INTEGER}, #{flowVersionId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR},
...
...
@@ -91,11 +93,11 @@
#{removeMark,jdbcType=CHAR}, #{repeatCount,jdbcType=INTEGER}, #{retryInterval,jdbcType=BIGINT},
#{routingStrategy,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR},
#{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=DATE},
#{triggerNextTime,jdbcType=BIGINT}, #{versionMark,jdbcType=CHAR}, #{
runSource,jdbcType=LONGVARCHAR}
)
#{triggerNextTime,jdbcType=BIGINT}, #{versionMark,jdbcType=CHAR}, #{
author,jdbcType=VARCHAR},
#{addTime,jdbcType=TIMESTAMP}, #{runSource,jdbcType=LONGVARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobFlowNodeVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_node_version
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"nodeId != null"
>
...
...
@@ -194,6 +196,12 @@
<if
test=
"versionMark != null"
>
version_mark,
</if>
<if
test=
"author != null"
>
author,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"runSource != null"
>
run_source,
</if>
...
...
@@ -295,13 +303,19 @@
<if
test=
"versionMark != null"
>
#{versionMark,jdbcType=CHAR},
</if>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"runSource != null"
>
#{runSource,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByIdSelective"
parameterType=
"com.byit.model.JobFlowNodeVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_node_version
<set>
<if
test=
"alarmEmail != null"
>
...
...
@@ -397,6 +411,12 @@
<if
test=
"versionMark != null"
>
version_mark = #{versionMark,jdbcType=CHAR},
</if>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"runSource != null"
>
run_source = #{runSource,jdbcType=LONGVARCHAR},
</if>
...
...
@@ -404,7 +424,7 @@
where node_id = #{nodeId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.byit.model.JobFlowNodeVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_node_version
set alarm_email = #{alarmEmail,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR},
...
...
@@ -437,11 +457,13 @@
source_update_time = #{sourceUpdateTime,jdbcType=DATE},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
version_mark = #{versionMark,jdbcType=CHAR},
author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP},
run_source = #{runSource,jdbcType=LONGVARCHAR}
where node_id = #{nodeId,jdbcType=INTEGER}
</update>
<update
id=
"updateById"
parameterType=
"com.byit.model.JobFlowNodeVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_node_version
set alarm_email = #{alarmEmail,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR},
...
...
@@ -473,7 +495,9 @@
source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
source_update_time = #{sourceUpdateTime,jdbcType=DATE},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
version_mark = #{versionMark,jdbcType=CHAR}
version_mark = #{versionMark,jdbcType=CHAR},
author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}
where node_id = #{nodeId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobFlowRunRecordingMapper.xml
View file @
6ff0a7cc
...
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.byit.mapper.JobFlowRunRecordingMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.byit.model.JobFlowRunRecording"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
<id
column=
"recording_id"
jdbcType=
"INTEGER"
property=
"recordingId"
/>
<result
column=
"run_id"
jdbcType=
"VARCHAR"
property=
"runId"
/>
<result
column=
"alarm_email"
jdbcType=
"VARCHAR"
property=
"alarmEmail"
/>
...
...
@@ -18,42 +18,44 @@
<result
column=
"remaining_node"
jdbcType=
"INTEGER"
property=
"remainingNode"
/>
<result
column=
"trigger_status"
jdbcType=
"CHAR"
property=
"triggerStatus"
/>
<result
column=
"trigger_time"
jdbcType=
"BIGINT"
property=
"triggerTime"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
recording_id, run_id, alarm_email, dispatch_ip, flow_name, flow_run_result, flow_status,
flow_timeout, flow_version_id, mail_action, node_count, priority, remaining_node,
trigger_status, trigger_time
trigger_status, trigger_time
, add_time, author
</sql>
<select
id=
"getById"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
select
<include
refid=
"Base_Column_List"
/>
from job_flow_run_recording
where recording_id = #{recordingId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
delete from job_flow_run_recording
where recording_id = #{recordingId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.byit.model.JobFlowRunRecording"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_run_recording (recording_id, run_id, alarm_email,
dispatch_ip, flow_name, flow_run_result,
flow_status, flow_timeout, flow_version_id,
mail_action, node_count, priority,
remaining_node, trigger_status, trigger_time
)
remaining_node, trigger_status, trigger_time
,
add_time, author
)
values (#{recordingId,jdbcType=INTEGER}, #{runId,jdbcType=VARCHAR}, #{alarmEmail,jdbcType=VARCHAR},
#{dispatchIp,jdbcType=VARCHAR}, #{flowName,jdbcType=VARCHAR}, #{flowRunResult,jdbcType=CHAR},
#{flowStatus,jdbcType=CHAR}, #{flowTimeout,jdbcType=BIGINT}, #{flowVersionId,jdbcType=INTEGER},
#{mailAction,jdbcType=CHAR}, #{nodeCount,jdbcType=INTEGER}, #{priority,jdbcType=CHAR},
#{remainingNode,jdbcType=INTEGER}, #{triggerStatus,jdbcType=CHAR}, #{triggerTime,jdbcType=BIGINT}
)
#{remainingNode,jdbcType=INTEGER}, #{triggerStatus,jdbcType=CHAR}, #{triggerTime,jdbcType=BIGINT}
,
#{addTime,jdbcType=TIMESTAMP}, #{author,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobFlowRunRecording"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_run_recording
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"recordingId != null"
>
...
...
@@ -101,6 +103,12 @@
<if
test=
"triggerTime != null"
>
trigger_time,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"author != null"
>
author,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"recordingId != null"
>
...
...
@@ -148,10 +156,16 @@
<if
test=
"triggerTime != null"
>
#{triggerTime,jdbcType=BIGINT},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByIdSelective"
parameterType=
"com.byit.model.JobFlowRunRecording"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_run_recording
<set>
<if
test=
"runId != null"
>
...
...
@@ -196,11 +210,17 @@
<if
test=
"triggerTime != null"
>
trigger_time = #{triggerTime,jdbcType=BIGINT},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
</if>
</set>
where recording_id = #{recordingId,jdbcType=INTEGER}
</update>
<update
id=
"updateById"
parameterType=
"com.byit.model.JobFlowRunRecording"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_run_recording
set run_id = #{runId,jdbcType=VARCHAR},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
...
...
@@ -215,7 +235,9 @@
priority = #{priority,jdbcType=CHAR},
remaining_node = #{remainingNode,jdbcType=INTEGER},
trigger_status = #{triggerStatus,jdbcType=CHAR},
trigger_time = #{triggerTime,jdbcType=BIGINT}
trigger_time = #{triggerTime,jdbcType=BIGINT},
add_time = #{addTime,jdbcType=TIMESTAMP},
author = #{author,jdbcType=VARCHAR}
where recording_id = #{recordingId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobFlowVersionMapper.xml
View file @
6ff0a7cc
...
...
@@ -2,9 +2,9 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.byit.mapper.JobFlowVersionMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.byit.model.JobFlowVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
<id
column=
"version_id"
jdbcType=
"INTEGER"
property=
"versionId"
/>
<result
column=
"add_time"
jdbcType=
"
DATE
"
property=
"addTime"
/>
<result
column=
"add_time"
jdbcType=
"
TIMESTAMP
"
property=
"addTime"
/>
<result
column=
"alarm_email"
jdbcType=
"VARCHAR"
property=
"alarmEmail"
/>
<result
column=
"exec_type"
jdbcType=
"CHAR"
property=
"execType"
/>
<result
column=
"flow_cron"
jdbcType=
"VARCHAR"
property=
"flowCron"
/>
...
...
@@ -18,47 +18,48 @@
<result
column=
"priority"
jdbcType=
"CHAR"
property=
"priority"
/>
<result
column=
"remove_mark"
jdbcType=
"CHAR"
property=
"removeMark"
/>
<result
column=
"repeat_count"
jdbcType=
"INTEGER"
property=
"repeatCount"
/>
<result
column=
"update_time"
jdbcType=
"
DATE
"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"
TIMESTAMP
"
property=
"updateTime"
/>
<result
column=
"version_mark"
jdbcType=
"CHAR"
property=
"versionMark"
/>
<result
column=
"workspace_id"
jdbcType=
"INTEGER"
property=
"workspaceId"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
version_id, add_time, alarm_email, exec_type, flow_cron, flow_desc, flow_id, flow_name,
flow_node_count, flow_timeout, mail_action, node_date_is_follow_flow, priority, remove_mark,
repeat_count, update_time, version_mark, workspace_id
repeat_count, update_time, version_mark, workspace_id
, author
</sql>
<select
id=
"getById"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
select
<include
refid=
"Base_Column_List"
/>
from job_flow_version
where version_id = #{versionId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
delete from job_flow_version
where version_id = #{versionId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.byit.model.JobFlowVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_version (version_id, add_time, alarm_email,
exec_type, flow_cron, flow_desc,
flow_id, flow_name, flow_node_count,
flow_timeout, mail_action, node_date_is_follow_flow,
priority, remove_mark, repeat_count,
update_time, version_mark, workspace_id
)
values (#{versionId,jdbcType=INTEGER}, #{addTime,jdbcType=
DATE
}, #{alarmEmail,jdbcType=VARCHAR},
update_time, version_mark, workspace_id
,
author
)
values (#{versionId,jdbcType=INTEGER}, #{addTime,jdbcType=
TIMESTAMP
}, #{alarmEmail,jdbcType=VARCHAR},
#{execType,jdbcType=CHAR}, #{flowCron,jdbcType=VARCHAR}, #{flowDesc,jdbcType=VARCHAR},
#{flowId,jdbcType=INTEGER}, #{flowName,jdbcType=VARCHAR}, #{flowNodeCount,jdbcType=INTEGER},
#{flowTimeout,jdbcType=BIGINT}, #{mailAction,jdbcType=CHAR}, #{nodeDateIsFollowFlow,jdbcType=CHAR},
#{priority,jdbcType=CHAR}, #{removeMark,jdbcType=CHAR}, #{repeatCount,jdbcType=INTEGER},
#{updateTime,jdbcType=
DATE}, #{versionMark,jdbcType=CHAR}, #{workspaceId,jdbcType=INTEGER}
)
#{updateTime,jdbcType=
TIMESTAMP}, #{versionMark,jdbcType=CHAR}, #{workspaceId,jdbcType=INTEGER},
#{author,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobFlowVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
insert into job_flow_version
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"versionId != null"
>
...
...
@@ -115,13 +116,16 @@
<if
test=
"workspaceId != null"
>
workspace_id,
</if>
<if
test=
"author != null"
>
author,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"versionId != null"
>
#{versionId,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=
DATE
},
#{addTime,jdbcType=
TIMESTAMP
},
</if>
<if
test=
"alarmEmail != null"
>
#{alarmEmail,jdbcType=VARCHAR},
...
...
@@ -163,7 +167,7 @@
#{repeatCount,jdbcType=INTEGER},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=
DATE
},
#{updateTime,jdbcType=
TIMESTAMP
},
</if>
<if
test=
"versionMark != null"
>
#{versionMark,jdbcType=CHAR},
...
...
@@ -171,14 +175,17 @@
<if
test=
"workspaceId != null"
>
#{workspaceId,jdbcType=INTEGER},
</if>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByIdSelective"
parameterType=
"com.byit.model.JobFlowVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_version
<set>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=
DATE
},
add_time = #{addTime,jdbcType=
TIMESTAMP
},
</if>
<if
test=
"alarmEmail != null"
>
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
...
...
@@ -220,7 +227,7 @@
repeat_count = #{repeatCount,jdbcType=INTEGER},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=
DATE
},
update_time = #{updateTime,jdbcType=
TIMESTAMP
},
</if>
<if
test=
"versionMark != null"
>
version_mark = #{versionMark,jdbcType=CHAR},
...
...
@@ -228,13 +235,16 @@
<if
test=
"workspaceId != null"
>
workspace_id = #{workspaceId,jdbcType=INTEGER},
</if>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
</if>
</set>
where version_id = #{versionId,jdbcType=INTEGER}
</update>
<update
id=
"updateById"
parameterType=
"com.byit.model.JobFlowVersion"
>
<!-- generated @mbg.generated date: 2019-12-2
3
-->
<!-- generated @mbg.generated date: 2019-12-2
4
-->
update job_flow_version
set add_time = #{addTime,jdbcType=
DATE
},
set add_time = #{addTime,jdbcType=
TIMESTAMP
},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
exec_type = #{execType,jdbcType=CHAR},
flow_cron = #{flowCron,jdbcType=VARCHAR},
...
...
@@ -248,9 +258,10 @@
priority = #{priority,jdbcType=CHAR},
remove_mark = #{removeMark,jdbcType=CHAR},
repeat_count = #{repeatCount,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=
DATE
},
update_time = #{updateTime,jdbcType=
TIMESTAMP
},
version_mark = #{versionMark,jdbcType=CHAR},
workspace_id = #{workspaceId,jdbcType=INTEGER}
workspace_id = #{workspaceId,jdbcType=INTEGER},
author = #{author,jdbcType=VARCHAR}
where version_id = #{versionId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobTaskMapper.xml
View file @
6ff0a7cc
...
...
@@ -37,6 +37,8 @@
<result
column=
"trigger_next_time"
jdbcType=
"BIGINT"
property=
"triggerNextTime"
/>
<result
column=
"trigger_status"
jdbcType=
"CHAR"
property=
"triggerStatus"
/>
<result
column=
"run_source"
jdbcType=
"LONGVARCHAR"
property=
"runSource"
/>
<result
column=
"add_time"
jdbcType=
"DATE"
property=
"addTime"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -45,7 +47,7 @@
node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type, plugin_urls,
priority, remaining_count, repeat_count, retry_interval, routing_strategy, run_id,
run_param, run_source_desc, script_urls, source_principal, source_update_time, trigger_next_time,
trigger_status,run_source
trigger_status,run_source
,add_time,author
</sql>
<!--查询七秒内将要执行的数据-->
...
...
@@ -89,7 +91,7 @@
routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal,
source_update_time, trigger_next_time, trigger_status,
run_source)
run_source
,add_time,author
)
values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR},
...
...
@@ -101,7 +103,7 @@
#{routingStrategy,jdbcType=VARCHAR}, #{runId,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR},
#{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR},
#{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT}, #{triggerStatus,jdbcType=CHAR},
#{runSource,jdbcType=LONGVARCHAR})
#{runSource,jdbcType=LONGVARCHAR}
,#{addTime,jdbcType=DATE},#{author,jdbcType=VARCHAR}
)
</insert>
<!--动态数据添加-->
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobTask"
>
...
...
@@ -209,6 +211,12 @@
<if
test=
"runSource != null"
>
run_source,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"author != null"
>
author,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -313,6 +321,12 @@
<if
test=
"runSource != null"
>
#{runSource,jdbcType=LONGVARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=DATE},
</if>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<!--动态修改-->
...
...
@@ -418,6 +432,12 @@
<if
test=
"runSource != null"
>
run_source = #{runSource,jdbcType=LONGVARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=DATE},
</if>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobTaskScheduleMapper.xml
View file @
6ff0a7cc
...
...
@@ -38,6 +38,8 @@
<result
column=
"trigger_next_time"
jdbcType=
"BIGINT"
property=
"triggerNextTime"
/>
<result
column=
"trigger_status"
jdbcType=
"CHAR"
property=
"triggerStatus"
/>
<result
column=
"run_source"
jdbcType=
"LONGVARCHAR"
property=
"runSource"
/>
<result
column=
"add_time"
jdbcType=
"DATE"
property=
"addTime"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -46,7 +48,7 @@
mail_action, node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type,
plugin_urls, priority, remaining_count, repeat_count, retry_interval, routing_strategy,
run_id, run_param, run_source_desc, script_urls, source_principal, source_update_time,
trigger_next_time, trigger_status,run_source
trigger_next_time, trigger_status,run_source
,add_time,author
</sql>
<!--查询五秒内将要执行的数据-->
<select
id=
"findJobTaskScheduleByTriggerNextTimeLessThanEqual"
resultMap=
"BaseResultMap"
>
...
...
@@ -78,7 +80,7 @@
retry_interval, routing_strategy, run_id,
run_param, run_source_desc, script_urls,
source_principal, source_update_time, trigger_next_time,
trigger_status, run_source)
trigger_status, run_source
,add_time,author
)
values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR},
...
...
@@ -90,7 +92,7 @@
#{retryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR}, #{runId,jdbcType=VARCHAR},
#{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR},
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT},
#{triggerStatus,jdbcType=CHAR}, #{runSource,jdbcType=LONGVARCHAR})
#{triggerStatus,jdbcType=CHAR}, #{runSource,jdbcType=LONGVARCHAR}
,#{addTime,jdbcType=DATE},#{author,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobTaskSchedule"
>
insert into job_task_schedule
...
...
@@ -200,6 +202,12 @@
<if
test=
"runSource != null"
>
run_source,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"author != null"
>
author,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -307,6 +315,12 @@
<if
test=
"runSource != null"
>
#{runSource,jdbcType=LONGVARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=DATE},
</if>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
</if>
</trim>
</insert>
...
...
@@ -323,7 +337,7 @@
retry_interval, routing_strategy, run_id,
run_param, run_source_desc, script_urls,
source_principal, source_update_time, trigger_next_time,
trigger_status,
run_source
)
trigger_status,
run_source,add_time,author
)
values
<foreach
collection=
"jobTaskSchedules"
item=
"jobTaskSchedule"
separator =
","
>
(#{jobTaskSchedule.id,jdbcType=INTEGER}, #{jobTaskSchedule.nodeId,jdbcType=INTEGER}, #{jobTaskSchedule.alarmEmail,jdbcType=VARCHAR},
...
...
@@ -337,7 +351,8 @@
#{jobTaskSchedule.retryInterval,jdbcType=BIGINT}, #{jobTaskSchedule.routingStrategy,jdbcType=VARCHAR}, #{jobTaskSchedule.runId,jdbcType=VARCHAR},
#{jobTaskSchedule.runParam,jdbcType=VARCHAR}, #{jobTaskSchedule.runSourceDesc,jdbcType=VARCHAR}, #{jobTaskSchedule.scriptUrls,jdbcType=VARCHAR},
#{jobTaskSchedule.sourcePrincipal,jdbcType=VARCHAR}, #{jobTaskSchedule.sourceUpdateTime,jdbcType=DATE}, #{jobTaskSchedule.triggerNextTime,jdbcType=BIGINT},
#{jobTaskSchedule.triggerStatus,jdbcType=CHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR})
#{jobTaskSchedule.triggerStatus,jdbcType=CHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR},#{jobTaskSchedule.addTime,jdbcType=DATE},
#{jobTaskSchedule.author,jdbcType=VARCHAR})
</foreach>
</insert>
...
...
@@ -448,84 +463,13 @@
<if
test=
"runSource != null"
>
run_source = #{runSource,jdbcType=LONGVARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=DATE},
</if>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.byit.model.JobTaskSchedule"
>
<!-- generated @mbg.generated date: 2019-12-23 -->
update job_task_schedule
set node_id = #{nodeId,jdbcType=INTEGER},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR},
callback_token = #{callbackToken,jdbcType=VARCHAR},
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
flow_id = #{flowId,jdbcType=INTEGER},
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
gateway_token = #{gatewayToken,jdbcType=VARCHAR},
job_type = #{jobType,jdbcType=VARCHAR},
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR},
log_id = #{logId,jdbcType=INTEGER},
mail_action = #{mailAction,jdbcType=CHAR},
node_cron = #{nodeCron,jdbcType=VARCHAR},
node_desc = #{nodeDesc,jdbcType=VARCHAR},
node_name = #{nodeName,jdbcType=VARCHAR},
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER},
node_timeout = #{nodeTimeout,jdbcType=BIGINT},
node_type = #{nodeType,jdbcType=VARCHAR},
plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
priority = #{priority,jdbcType=CHAR},
remaining_count = #{remainingCount,jdbcType=INTEGER},
repeat_count = #{repeatCount,jdbcType=INTEGER},
retry_interval = #{retryInterval,jdbcType=BIGINT},
routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
run_id = #{runId,jdbcType=VARCHAR},
run_param = #{runParam,jdbcType=VARCHAR},
run_source_desc = #{runSourceDesc,jdbcType=VARCHAR},
script_urls = #{scriptUrls,jdbcType=VARCHAR},
source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
source_update_time = #{sourceUpdateTime,jdbcType=DATE},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
trigger_status = #{triggerStatus,jdbcType=CHAR},
run_source = #{runSource,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateById"
parameterType=
"com.byit.model.JobTaskSchedule"
>
<!-- generated @mbg.generated date: 2019-12-23 -->
update job_task_schedule
set node_id = #{nodeId,jdbcType=INTEGER},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR},
callback_token = #{callbackToken,jdbcType=VARCHAR},
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
flow_id = #{flowId,jdbcType=INTEGER},
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
gateway_token = #{gatewayToken,jdbcType=VARCHAR},
job_type = #{jobType,jdbcType=VARCHAR},
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR},
log_id = #{logId,jdbcType=INTEGER},
mail_action = #{mailAction,jdbcType=CHAR},
node_cron = #{nodeCron,jdbcType=VARCHAR},
node_desc = #{nodeDesc,jdbcType=VARCHAR},
node_name = #{nodeName,jdbcType=VARCHAR},
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER},
node_timeout = #{nodeTimeout,jdbcType=BIGINT},
node_type = #{nodeType,jdbcType=VARCHAR},
plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
priority = #{priority,jdbcType=CHAR},
remaining_count = #{remainingCount,jdbcType=INTEGER},
repeat_count = #{repeatCount,jdbcType=INTEGER},
retry_interval = #{retryInterval,jdbcType=BIGINT},
routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
run_id = #{runId,jdbcType=VARCHAR},
run_param = #{runParam,jdbcType=VARCHAR},
run_source_desc = #{runSourceDesc,jdbcType=VARCHAR},
script_urls = #{scriptUrls,jdbcType=VARCHAR},
source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
source_update_time = #{sourceUpdateTime,jdbcType=DATE},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
trigger_status = #{triggerStatus,jdbcType=CHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
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