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
1823566c
Commit
1823566c
authored
Feb 05, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务相关表添加是否强依赖于上级成功完成时的配置
parent
89a08b5a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
10 deletions
+64
-10
JobTask.java
...myth-admin-core/src/main/java/com/byit/model/JobTask.java
+9
-2
JobTaskRunLog.java
...dmin-core/src/main/java/com/byit/model/JobTaskRunLog.java
+6
-0
JobTaskSchedule.java
...in-core/src/main/java/com/byit/model/JobTaskSchedule.java
+9
-1
JobTaskMapper.xml
...th-admin-core/src/main/resources/mapper/JobTaskMapper.xml
+13
-3
JobTaskRunLogMapper.xml
...in-core/src/main/resources/mapper/JobTaskRunLogMapper.xml
+14
-1
JobTaskScheduleMapper.xml
...-core/src/main/resources/mapper/JobTaskScheduleMapper.xml
+13
-3
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobTask.java
View file @
1823566c
...
@@ -2,13 +2,13 @@ package com.byit.model;
...
@@ -2,13 +2,13 @@ package com.byit.model;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
/**
*
*
*/
*/
...
@@ -189,6 +189,12 @@ public class JobTask implements Serializable {
...
@@ -189,6 +189,12 @@ public class JobTask implements Serializable {
private
String
runSource
;
private
String
runSource
;
/**
/**
* 是否上级运行成功时运行(0 是 1 否)
*/
@ApiModelProperty
(
"是否上级运行成功时运行(0 是 1 否)"
)
private
String
superSuccessRun
;
/**
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobTaskRunLog.java
View file @
1823566c
...
@@ -169,6 +169,12 @@ public class JobTaskRunLog implements Serializable {
...
@@ -169,6 +169,12 @@ public class JobTaskRunLog implements Serializable {
private
String
logFileName
;
private
String
logFileName
;
/**
/**
* 是否上级运行成功时运行(0 是 1 否)
*/
@ApiModelProperty
(
"是否上级运行成功时运行(0 是 1 否)"
)
private
String
superSuccessRun
;
/**
*
*
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobTaskSchedule.java
View file @
1823566c
...
@@ -2,9 +2,10 @@ package com.byit.model;
...
@@ -2,9 +2,10 @@ package com.byit.model;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
/**
*
*
*/
*/
...
@@ -188,6 +189,12 @@ public class JobTaskSchedule implements Serializable {
...
@@ -188,6 +189,12 @@ public class JobTaskSchedule implements Serializable {
private
String
runSource
;
private
String
runSource
;
/**
/**
* 是否上级运行成功时运行(0 是 1 否)
*/
@ApiModelProperty
(
"是否上级运行成功时运行(0 是 1 否)"
)
private
String
superSuccessRun
;
/**
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
}
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobTaskMapper.xml
View file @
1823566c
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
<result
column=
"version_name"
jdbcType=
"VARCHAR"
property=
"versionName"
/>
<result
column=
"version_name"
jdbcType=
"VARCHAR"
property=
"versionName"
/>
<result
column=
"run_command"
jdbcType=
"VARCHAR"
property=
"runCommand"
/>
<result
column=
"run_command"
jdbcType=
"VARCHAR"
property=
"runCommand"
/>
<result
column=
"flow_name"
jdbcType=
"VARCHAR"
property=
"flowName"
/>
<result
column=
"flow_name"
jdbcType=
"VARCHAR"
property=
"flowName"
/>
<result
column=
"super_success_run"
jdbcType=
"CHAR"
property=
"superSuccessRun"
/>
</resultMap>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.byit.model.JobTask"
>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.byit.model.JobTask"
>
<!-- generated @mbg.generated date: 2019-12-25 -->
<!-- generated @mbg.generated date: 2019-12-25 -->
...
@@ -42,7 +43,7 @@
...
@@ -42,7 +43,7 @@
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
run_command,flow_name
run_command,flow_name
, super_success_run
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
run_source
run_source
...
@@ -158,6 +159,9 @@
...
@@ -158,6 +159,9 @@
<if
test=
"flowName != null"
>
<if
test=
"flowName != null"
>
flow_name,
flow_name,
</if>
</if>
<if
test=
"superSuccessRun != null"
>
super_success_run,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
...
@@ -247,6 +251,9 @@
...
@@ -247,6 +251,9 @@
<if
test=
"flowName != null"
>
<if
test=
"flowName != null"
>
#{flowName,jdbcType=VARCHAR},
#{flowName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"superSuccessRun != null"
>
#{superSuccessRun,jdbcType=CHAR},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -256,7 +263,7 @@
...
@@ -256,7 +263,7 @@
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
run_command,run_source,flow_name
run_command,run_source,flow_name
,super_success_run
) values
) values
<foreach
collection=
"jobTasks"
item=
"jobTask"
separator =
","
>
<foreach
collection=
"jobTasks"
item=
"jobTask"
separator =
","
>
(
(
...
@@ -268,7 +275,7 @@
...
@@ -268,7 +275,7 @@
#{jobTask.runParam,jdbcType=VARCHAR},#{jobTask.runSourceDesc,jdbcType=VARCHAR},#{jobTask.scriptUrls,jdbcType=VARCHAR},
#{jobTask.runParam,jdbcType=VARCHAR},#{jobTask.runSourceDesc,jdbcType=VARCHAR},#{jobTask.scriptUrls,jdbcType=VARCHAR},
#{jobTask.sourcePrincipal,jdbcType=VARCHAR},#{jobTask.triggerTime,jdbcType=BIGINT},#{jobTask.triggerStatus,jdbcType=CHAR},
#{jobTask.sourcePrincipal,jdbcType=VARCHAR},#{jobTask.triggerTime,jdbcType=BIGINT},#{jobTask.triggerStatus,jdbcType=CHAR},
#{jobTask.versionName,jdbcType=VARCHAR},#{jobTask.runCommand,jdbcType=VARCHAR},#{jobTask.runSource,jdbcType=LONGVARCHAR},
#{jobTask.versionName,jdbcType=VARCHAR},#{jobTask.runCommand,jdbcType=VARCHAR},#{jobTask.runSource,jdbcType=LONGVARCHAR},
#{jobTask.flowName,jdbcType=VARCHAR}
#{jobTask.flowName,jdbcType=VARCHAR}
,#{jobTask.superSuccessRun,jdbcType=CHAR}
)
)
</foreach>
</foreach>
...
@@ -362,6 +369,9 @@
...
@@ -362,6 +369,9 @@
<if
test=
"runSource != null"
>
<if
test=
"runSource != null"
>
flow_name = #{flowName,jdbcType=VARCHAR},
flow_name = #{flowName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"superSuccessRun != null"
>
super_success_run = #{superSuccessRun,jdbcType=CHAR},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobTaskRunLogMapper.xml
View file @
1823566c
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<result
column=
"run_id"
jdbcType=
"VARCHAR"
property=
"runId"
/>
<result
column=
"run_id"
jdbcType=
"VARCHAR"
property=
"runId"
/>
<result
column=
"re_run_id"
jdbcType=
"VARCHAR"
property=
"reRunId"
/>
<result
column=
"re_run_id"
jdbcType=
"VARCHAR"
property=
"reRunId"
/>
<result
column=
"log_file_name"
jdbcType=
"VARCHAR"
property=
"logFileName"
/>
<result
column=
"log_file_name"
jdbcType=
"VARCHAR"
property=
"logFileName"
/>
<result
column=
"super_success_run"
jdbcType=
"CHAR"
property=
"superSuccessRun"
/>
</resultMap>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.byit.model.JobTaskRunLogWithBLOBs"
>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.byit.model.JobTaskRunLogWithBLOBs"
>
<result
column=
"run_msg"
jdbcType=
"LONGVARCHAR"
property=
"runMsg"
/>
<result
column=
"run_msg"
jdbcType=
"LONGVARCHAR"
property=
"runMsg"
/>
...
@@ -36,7 +37,7 @@
...
@@ -36,7 +37,7 @@
log_id, failed_remaining_count, version_name, flow_id, flow_name, job_group_id, handler_name,
log_id, failed_remaining_count, version_name, flow_id, flow_name, job_group_id, handler_name,
node_name, is_virtual, run_code, run_params, start_time, run_type, trigger_code,
node_name, is_virtual, run_code, run_params, start_time, run_type, trigger_code,
trigger_time, job_group_ip, map_flow_id, run_command, end_time, node_id,job_type,alert_end,run_id,re_run_id
trigger_time, job_group_ip, map_flow_id, run_command, end_time, node_id,job_type,alert_end,run_id,re_run_id
,log_file_name
,log_file_name
, super_success_run
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
run_msg, trigger_msg
run_msg, trigger_msg
...
@@ -172,6 +173,9 @@
...
@@ -172,6 +173,9 @@
<if
test=
"logFileName != null"
>
<if
test=
"logFileName != null"
>
log_file_name,
log_file_name,
</if>
</if>
<if
test=
"superSuccessRun != null"
>
super_success_run,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"logId != null"
>
<if
test=
"logId != null"
>
...
@@ -255,6 +259,9 @@
...
@@ -255,6 +259,9 @@
<if
test=
"logFileName != null"
>
<if
test=
"logFileName != null"
>
#{logFileName,jdbcType=VARCHAR},
#{logFileName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"superSuccessRun != null"
>
#{superSuccessRun,jdbcType=CHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateJobTaskRunLogWithBLOBs"
parameterType=
"com.byit.model.JobTaskRunLogWithBLOBs"
>
<update
id=
"updateJobTaskRunLogWithBLOBs"
parameterType=
"com.byit.model.JobTaskRunLogWithBLOBs"
>
...
@@ -338,6 +345,9 @@
...
@@ -338,6 +345,9 @@
<if
test=
"logFileName != null"
>
<if
test=
"logFileName != null"
>
log_file_name = #{logFileName,jdbcType=VARCHAR},
log_file_name = #{logFileName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"superSuccessRun != null"
>
super_success_run = #{superSuccessRun,jdbcType=CHAR},
</if>
</set>
</set>
where log_id = #{logId,jdbcType=INTEGER}
where log_id = #{logId,jdbcType=INTEGER}
</update>
</update>
...
@@ -416,6 +426,9 @@
...
@@ -416,6 +426,9 @@
<if
test=
"logFileName != null"
>
<if
test=
"logFileName != null"
>
log_file_name = #{logFileName,jdbcType=VARCHAR},
log_file_name = #{logFileName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"superSuccessRun != null"
>
super_success_run = #{superSuccessRun,jdbcType=CHAR},
</if>
</set>
</set>
where log_id = #{logId,jdbcType=INTEGER}
where log_id = #{logId,jdbcType=INTEGER}
</update>
</update>
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobTaskScheduleMapper.xml
View file @
1823566c
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
<result
column=
"log_id"
jdbcType=
"INTEGER"
property=
"logId"
/>
<result
column=
"log_id"
jdbcType=
"INTEGER"
property=
"logId"
/>
<result
column=
"run_command"
jdbcType=
"VARCHAR"
property=
"runCommand"
/>
<result
column=
"run_command"
jdbcType=
"VARCHAR"
property=
"runCommand"
/>
<result
column=
"flow_name"
jdbcType=
"VARCHAR"
property=
"flowName"
/>
<result
column=
"flow_name"
jdbcType=
"VARCHAR"
property=
"flowName"
/>
<result
column=
"super_success_run"
jdbcType=
"CHAR"
property=
"superSuccessRun"
/>
</resultMap>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.byit.model.JobTaskSchedule"
>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.byit.model.JobTaskSchedule"
>
...
@@ -43,7 +44,7 @@
...
@@ -43,7 +44,7 @@
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
log_id, run_command,flow_name
log_id, run_command,flow_name
, super_success_run
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
run_source
run_source
...
@@ -166,6 +167,9 @@
...
@@ -166,6 +167,9 @@
<if
test=
"flowName != null"
>
<if
test=
"flowName != null"
>
flow_name,
flow_name,
</if>
</if>
<if
test=
"superSuccessRun != null"
>
super_success_run,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
...
@@ -258,6 +262,9 @@
...
@@ -258,6 +262,9 @@
<if
test=
"flowName != null"
>
<if
test=
"flowName != null"
>
#{flowName,jdbcType=VARCHAR},
#{flowName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"superSuccessRun != null"
>
#{superSuccessRun,jdbcType=CHAR},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -271,7 +278,7 @@
...
@@ -271,7 +278,7 @@
run_id, run_param, run_source_desc,
run_id, run_param, run_source_desc,
script_urls, source_principal, trigger_time,
script_urls, source_principal, trigger_time,
trigger_status, version_name, log_id,
trigger_status, version_name, log_id,
run_command, run_source,flow_name
run_command, run_source,flow_name
, super_success_run
)
)
values
values
<foreach
collection=
"jobTaskSchedules"
item=
"jobTaskSchedule"
separator=
","
>
<foreach
collection=
"jobTaskSchedules"
item=
"jobTaskSchedule"
separator=
","
>
...
@@ -295,7 +302,7 @@
...
@@ -295,7 +302,7 @@
#{jobTaskSchedule.triggerStatus,jdbcType=CHAR}, #{jobTaskSchedule.versionName,jdbcType=VARCHAR},
#{jobTaskSchedule.triggerStatus,jdbcType=CHAR}, #{jobTaskSchedule.versionName,jdbcType=VARCHAR},
#{jobTaskSchedule.logId,jdbcType=INTEGER},
#{jobTaskSchedule.logId,jdbcType=INTEGER},
#{jobTaskSchedule.runCommand,jdbcType=VARCHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR},
#{jobTaskSchedule.runCommand,jdbcType=VARCHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR},
#{jobTaskSchedule.flowName,jdbcType=VARCHAR}
#{jobTaskSchedule.flowName,jdbcType=VARCHAR}
, #{jobTaskSchedule.superSuccessRun,jdbcType=CHAR}
)
)
</foreach>
</foreach>
</insert>
</insert>
...
@@ -391,6 +398,9 @@
...
@@ -391,6 +398,9 @@
<if
test=
"flowName != null"
>
<if
test=
"flowName != null"
>
flow_name = #{flowName,jdbcType=VARCHAR},
flow_name = #{flowName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"superSuccessRun != null"
>
super_success_run = #{superSuccessRun,jdbcType=CHAR},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
...
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