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
c3efbaf9
Commit
c3efbaf9
authored
Dec 24, 2019
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【表增加字段】增加表字段
parent
e32c47dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
126 additions
and
52 deletions
+126
-52
JobFlowNodeVersionMapper.java
...c/main/java/com/byit/mapper/JobFlowNodeVersionMapper.java
+0
-20
JobFlowVersionMapper.java
...e/src/main/java/com/byit/mapper/JobFlowVersionMapper.java
+2
-2
jobFlowNodeVersionMapper.java
...c/main/java/com/byit/mapper/jobFlowNodeVersionMapper.java
+20
-0
JobFlowVersion.java
...min-core/src/main/java/com/byit/model/JobFlowVersion.java
+1
-1
JobTask.java
...myth-admin-core/src/main/java/com/byit/model/JobTask.java
+10
-1
JobTaskSchedule.java
...in-core/src/main/java/com/byit/model/JobTaskSchedule.java
+10
-1
jobFlowNodeVersion.java
...core/src/main/java/com/byit/model/jobFlowNodeVersion.java
+7
-1
Generator-config.xml
...e/myth-admin-core/src/main/resources/Generator-config.xml
+2
-1
JobFlowNodeVersionMapper.xml
...re/src/main/resources/mapper/JobFlowNodeVersionMapper.xml
+0
-0
JobFlowVersionMapper.xml
...n-core/src/main/resources/mapper/JobFlowVersionMapper.xml
+15
-14
JobTaskMapper.xml
...th-admin-core/src/main/resources/mapper/JobTaskMapper.xml
+25
-3
JobTaskRunLogMapper.xml
...in-core/src/main/resources/mapper/JobTaskRunLogMapper.xml
+6
-3
JobTaskScheduleMapper.xml
...-core/src/main/resources/mapper/JobTaskScheduleMapper.xml
+28
-5
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/JobFlowNodeVersionMapper.java
deleted
100644 → 0
View file @
e32c47dd
package
com
.
byit
.
mapper
;
import
com.byit.model.JobFlowNodeVersion
;
public
interface
JobFlowNodeVersionMapper
{
int
deleteById
(
Integer
nodeId
);
int
insert
(
JobFlowNodeVersion
record
);
int
insertSelective
(
JobFlowNodeVersion
record
);
JobFlowNodeVersion
getById
(
Integer
nodeId
);
int
updateByIdSelective
(
JobFlowNodeVersion
record
);
int
updateByIdWithBLOBs
(
JobFlowNodeVersion
record
);
int
updateById
(
JobFlowNodeVersion
record
);
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/JobFlowVersionMapper.java
View file @
c3efbaf9
...
@@ -3,13 +3,13 @@ package com.byit.mapper;
...
@@ -3,13 +3,13 @@ package com.byit.mapper;
import
com.byit.model.JobFlowVersion
;
import
com.byit.model.JobFlowVersion
;
public
interface
JobFlowVersionMapper
{
public
interface
JobFlowVersionMapper
{
int
deleteById
(
Integer
v
ersionId
);
int
deleteById
(
Integer
flowV
ersionId
);
int
insert
(
JobFlowVersion
record
);
int
insert
(
JobFlowVersion
record
);
int
insertSelective
(
JobFlowVersion
record
);
int
insertSelective
(
JobFlowVersion
record
);
JobFlowVersion
getById
(
Integer
v
ersionId
);
JobFlowVersion
getById
(
Integer
flowV
ersionId
);
int
updateByIdSelective
(
JobFlowVersion
record
);
int
updateByIdSelective
(
JobFlowVersion
record
);
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/jobFlowNodeVersionMapper.java
0 → 100644
View file @
c3efbaf9
package
com
.
byit
.
mapper
;
import
com.byit.model.jobFlowNodeVersion
;
public
interface
jobFlowNodeVersionMapper
{
int
deleteById
(
Integer
nodeVersionId
);
int
insert
(
jobFlowNodeVersion
record
);
int
insertSelective
(
jobFlowNodeVersion
record
);
jobFlowNodeVersion
getById
(
Integer
nodeVersionId
);
int
updateByIdSelective
(
jobFlowNodeVersion
record
);
int
updateByIdWithBLOBs
(
jobFlowNodeVersion
record
);
int
updateById
(
jobFlowNodeVersion
record
);
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobFlowVersion.java
View file @
c3efbaf9
...
@@ -16,7 +16,7 @@ public class JobFlowVersion implements Serializable {
...
@@ -16,7 +16,7 @@ public class JobFlowVersion implements Serializable {
* 版本工作流主键
* 版本工作流主键
*/
*/
@ApiModelProperty
(
"版本工作流主键"
)
@ApiModelProperty
(
"版本工作流主键"
)
private
Integer
v
ersionId
;
private
Integer
flowV
ersionId
;
/**
/**
* 添加时间
* 添加时间
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/JobTask.java
View file @
c3efbaf9
...
@@ -226,7 +226,16 @@ public class JobTask implements Serializable {
...
@@ -226,7 +226,16 @@ public class JobTask implements Serializable {
*/
*/
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
private
Date
addTime
;
private
Date
addTime
;
/**
* 创建人
*/
@ApiModelProperty
(
"版本id"
)
private
String
versionId
;
/**
* 创建人
*/
@ApiModelProperty
(
"版本名称"
)
private
String
versionName
;
/**
/**
*/
*/
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 @
c3efbaf9
...
@@ -233,7 +233,16 @@ public class JobTaskSchedule implements Serializable {
...
@@ -233,7 +233,16 @@ public class JobTaskSchedule implements Serializable {
*/
*/
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
private
Date
addTime
;
private
Date
addTime
;
/**
* 创建人
*/
@ApiModelProperty
(
"版本id"
)
private
String
versionId
;
/**
* 创建人
*/
@ApiModelProperty
(
"版本名称"
)
private
String
versionName
;
/**
/**
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/
J
obFlowNodeVersion.java
→
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/
j
obFlowNodeVersion.java
View file @
c3efbaf9
...
@@ -11,11 +11,17 @@ import lombok.Data;
...
@@ -11,11 +11,17 @@ import lombok.Data;
*/
*/
@ApiModel
@ApiModel
@Data
@Data
public
class
J
obFlowNodeVersion
implements
Serializable
{
public
class
j
obFlowNodeVersion
implements
Serializable
{
/**
/**
* 当前版本节点主键
* 当前版本节点主键
*/
*/
@ApiModelProperty
(
"当前版本节点主键"
)
@ApiModelProperty
(
"当前版本节点主键"
)
private
Integer
nodeVersionId
;
/**
* 节点的id
*/
@ApiModelProperty
(
"节点的id"
)
private
Integer
nodeId
;
private
Integer
nodeId
;
/**
/**
...
...
byit-myth-core/myth-admin-core/src/main/resources/Generator-config.xml
View file @
c3efbaf9
...
@@ -55,7 +55,8 @@
...
@@ -55,7 +55,8 @@
type=
"XMLMAPPER"
>
type=
"XMLMAPPER"
>
<property
name=
"enableSubPackages"
value=
"false"
/>
<property
name=
"enableSubPackages"
value=
"false"
/>
</javaClientGenerator>
</javaClientGenerator>
<table
tableName=
"job_flow_current"
domainObjectName=
"JobFlow"
/>
<table
tableName=
"job_flow_version"
domainObjectName=
"JobFlowVersion"
/>
<table
tableName=
"job_flow_node_version"
domainObjectName=
"jobFlowNodeVersion"
/>
</context>
</context>
</generatorConfiguration>
</generatorConfiguration>
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobFlowNodeVersionMapper.xml
View file @
c3efbaf9
This diff is collapsed.
Click to expand it.
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobFlowVersionMapper.xml
View file @
c3efbaf9
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.byit.mapper.JobFlowVersionMapper"
>
<mapper
namespace=
"com.byit.mapper.JobFlowVersionMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.byit.model.JobFlowVersion"
>
<resultMap
id=
"BaseResultMap"
type=
"com.byit.model.JobFlowVersion"
>
<!-- generated @mbg.generated date: 2019-12-24 -->
<!-- generated @mbg.generated date: 2019-12-24 -->
<id
column=
"
version_id"
jdbcType=
"INTEGER"
property=
"v
ersionId"
/>
<id
column=
"
flow_version_id"
jdbcType=
"INTEGER"
property=
"flowV
ersionId"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"alarm_email"
jdbcType=
"VARCHAR"
property=
"alarmEmail"
/>
<result
column=
"alarm_email"
jdbcType=
"VARCHAR"
property=
"alarmEmail"
/>
<result
column=
"exec_type"
jdbcType=
"CHAR"
property=
"execType"
/>
<result
column=
"exec_type"
jdbcType=
"CHAR"
property=
"execType"
/>
...
@@ -25,32 +25,32 @@
...
@@ -25,32 +25,32 @@
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-24 -->
<!-- generated @mbg.generated date: 2019-12-24 -->
version_id, add_time, alarm_email, exec_type, flow_cron, flow_desc, flow_id, flow_name
,
flow_version_id, add_time, alarm_email, exec_type, flow_cron, flow_desc, flow_id
,
flow_n
ode_count, flow_timeout, mail_action, node_date_is_follow_flow, priority, remove_mark
,
flow_n
ame, flow_node_count, flow_timeout, mail_action, node_date_is_follow_flow
,
repeat_count, update_time, version_mark, workspace_id, author
priority, remove_mark,
repeat_count, update_time, version_mark, workspace_id, author
</sql>
</sql>
<select
id=
"getById"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"getById"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!-- generated @mbg.generated date: 2019-12-24 -->
<!-- generated @mbg.generated date: 2019-12-24 -->
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from job_flow_version
from job_flow_version
where
version_id = #{v
ersionId,jdbcType=INTEGER}
where
flow_version_id = #{flowV
ersionId,jdbcType=INTEGER}
</select>
</select>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<!-- generated @mbg.generated date: 2019-12-24 -->
<!-- generated @mbg.generated date: 2019-12-24 -->
delete from job_flow_version
delete from job_flow_version
where
version_id = #{v
ersionId,jdbcType=INTEGER}
where
flow_version_id = #{flowV
ersionId,jdbcType=INTEGER}
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"com.byit.model.JobFlowVersion"
>
<insert
id=
"insert"
parameterType=
"com.byit.model.JobFlowVersion"
>
<!-- generated @mbg.generated date: 2019-12-24 -->
<!-- generated @mbg.generated date: 2019-12-24 -->
insert into job_flow_version (version_id, add_time, alarm_email,
insert into job_flow_version (
flow_
version_id, add_time, alarm_email,
exec_type, flow_cron, flow_desc,
exec_type, flow_cron, flow_desc,
flow_id, flow_name, flow_node_count,
flow_id, flow_name, flow_node_count,
flow_timeout, mail_action, node_date_is_follow_flow,
flow_timeout, mail_action, node_date_is_follow_flow,
priority, remove_mark, repeat_count,
priority, remove_mark, repeat_count,
update_time, version_mark, workspace_id,
update_time, version_mark, workspace_id,
author)
author)
values (#{
v
ersionId,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{alarmEmail,jdbcType=VARCHAR},
values (#{
flowV
ersionId,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{alarmEmail,jdbcType=VARCHAR},
#{execType,jdbcType=CHAR}, #{flowCron,jdbcType=VARCHAR}, #{flowDesc,jdbcType=VARCHAR},
#{execType,jdbcType=CHAR}, #{flowCron,jdbcType=VARCHAR}, #{flowDesc,jdbcType=VARCHAR},
#{flowId,jdbcType=INTEGER}, #{flowName,jdbcType=VARCHAR}, #{flowNodeCount,jdbcType=INTEGER},
#{flowId,jdbcType=INTEGER}, #{flowName,jdbcType=VARCHAR}, #{flowNodeCount,jdbcType=INTEGER},
#{flowTimeout,jdbcType=BIGINT}, #{mailAction,jdbcType=CHAR}, #{nodeDateIsFollowFlow,jdbcType=CHAR},
#{flowTimeout,jdbcType=BIGINT}, #{mailAction,jdbcType=CHAR}, #{nodeDateIsFollowFlow,jdbcType=CHAR},
...
@@ -62,8 +62,8 @@
...
@@ -62,8 +62,8 @@
<!-- generated @mbg.generated date: 2019-12-24 -->
<!-- generated @mbg.generated date: 2019-12-24 -->
insert into job_flow_version
insert into job_flow_version
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"
v
ersionId != null"
>
<if
test=
"
flowV
ersionId != null"
>
version_id,
flow_
version_id,
</if>
</if>
<if
test=
"addTime != null"
>
<if
test=
"addTime != null"
>
add_time,
add_time,
...
@@ -121,8 +121,8 @@
...
@@ -121,8 +121,8 @@
</if>
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"
v
ersionId != null"
>
<if
test=
"
flowV
ersionId != null"
>
#{
v
ersionId,jdbcType=INTEGER},
#{
flowV
ersionId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"addTime != null"
>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
#{addTime,jdbcType=TIMESTAMP},
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
author = #{author,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
</if>
</if>
</set>
</set>
where
version_id = #{v
ersionId,jdbcType=INTEGER}
where
flow_version_id = #{flowV
ersionId,jdbcType=INTEGER}
</update>
</update>
<update
id=
"updateById"
parameterType=
"com.byit.model.JobFlowVersion"
>
<update
id=
"updateById"
parameterType=
"com.byit.model.JobFlowVersion"
>
<!-- generated @mbg.generated date: 2019-12-24 -->
<!-- generated @mbg.generated date: 2019-12-24 -->
...
@@ -262,6 +262,6 @@
...
@@ -262,6 +262,6 @@
version_mark = #{versionMark,jdbcType=CHAR},
version_mark = #{versionMark,jdbcType=CHAR},
workspace_id = #{workspaceId,jdbcType=INTEGER},
workspace_id = #{workspaceId,jdbcType=INTEGER},
author = #{author,jdbcType=VARCHAR}
author = #{author,jdbcType=VARCHAR}
where
version_id = #{v
ersionId,jdbcType=INTEGER}
where
flow_version_id = #{flowV
ersionId,jdbcType=INTEGER}
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobTaskMapper.xml
View file @
c3efbaf9
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
<result
column=
"run_source"
jdbcType=
"LONGVARCHAR"
property=
"runSource"
/>
<result
column=
"run_source"
jdbcType=
"LONGVARCHAR"
property=
"runSource"
/>
<result
column=
"add_time"
jdbcType=
"DATE"
property=
"addTime"
/>
<result
column=
"add_time"
jdbcType=
"DATE"
property=
"addTime"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
<result
column=
"version_id"
jdbcType=
"VARCHAR"
property=
"versionId"
/>
<result
column=
"version_name"
jdbcType=
"VARCHAR"
property=
"versionName"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -47,7 +49,7 @@
...
@@ -47,7 +49,7 @@
node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type, plugin_urls,
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,
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,
run_param, run_source_desc, script_urls, source_principal, source_update_time, trigger_next_time,
trigger_status,run_source,add_time,author
trigger_status,run_source,add_time,author
,version_id,version_name
</sql>
</sql>
<!--查询七秒内将要执行的数据-->
<!--查询七秒内将要执行的数据-->
...
@@ -91,7 +93,7 @@
...
@@ -91,7 +93,7 @@
routing_strategy, run_id, run_param,
routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal,
run_source_desc, script_urls, source_principal,
source_update_time, trigger_next_time, trigger_status,
source_update_time, trigger_next_time, trigger_status,
run_source,add_time,author)
run_source,add_time,author
,version_id,version_name
)
values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR},
...
@@ -103,7 +105,8 @@
...
@@ -103,7 +105,8 @@
#{routingStrategy,jdbcType=VARCHAR}, #{runId,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR},
#{routingStrategy,jdbcType=VARCHAR}, #{runId,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR},
#{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR},
#{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR},
#{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT}, #{triggerStatus,jdbcType=CHAR},
#{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT}, #{triggerStatus,jdbcType=CHAR},
#{runSource,jdbcType=LONGVARCHAR},#{addTime,jdbcType=DATE},#{author,jdbcType=VARCHAR})
#{runSource,jdbcType=LONGVARCHAR},#{addTime,jdbcType=DATE},#{author,jdbcType=VARCHAR},#{versionId,jdbcType=VARCHAR},
#{versionName,jdbcType=VARCHAR})
</insert>
</insert>
<!--动态数据添加-->
<!--动态数据添加-->
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobTask"
>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobTask"
>
...
@@ -217,6 +220,13 @@
...
@@ -217,6 +220,13 @@
<if
test=
"author != null"
>
<if
test=
"author != null"
>
author,
author,
</if>
</if>
<if
test=
"versionId != null"
>
version_id,
</if>
<if
test=
"versionName != null"
>
version_name,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
...
@@ -327,6 +337,12 @@
...
@@ -327,6 +337,12 @@
<if
test=
"author != null"
>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
#{author,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"versionId != null"
>
#{versionId,jdbcType=VARCHAR},
</if>
<if
test=
"versionName != null"
>
#{versionName,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<!--动态修改-->
<!--动态修改-->
...
@@ -438,6 +454,12 @@
...
@@ -438,6 +454,12 @@
<if
test=
"author != null"
>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"versionId != null"
>
version_id = #{versionId,jdbcType=VARCHAR},
</if>
<if
test=
"versionName != null"
>
version_name = #{versionName,jdbcType=VARCHAR},
</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 @
c3efbaf9
...
@@ -271,7 +271,7 @@
...
@@ -271,7 +271,7 @@
trigger_msg = #{triggerMsg,jdbcType=LONGVARCHAR},
trigger_msg = #{triggerMsg,jdbcType=LONGVARCHAR},
</if>
</if>
<if
test=
"jobVersionName != null"
>
<if
test=
"jobVersionName != null"
>
job
VersionN
ame = #{jobVersionName,jdbcType=VARCHAR},
job
_version_n
ame = #{jobVersionName,jdbcType=VARCHAR},
</if>
</if>
</set>
</set>
where log_id = #{logId,jdbcType=INTEGER}
where log_id = #{logId,jdbcType=INTEGER}
...
@@ -299,7 +299,8 @@
...
@@ -299,7 +299,8 @@
trigger_code = #{triggerCode,jdbcType=VARCHAR},
trigger_code = #{triggerCode,jdbcType=VARCHAR},
trigger_time = #{triggerTime,jdbcType=DATE},
trigger_time = #{triggerTime,jdbcType=DATE},
run_msg = #{runMsg,jdbcType=LONGVARCHAR},
run_msg = #{runMsg,jdbcType=LONGVARCHAR},
trigger_msg = #{triggerMsg,jdbcType=LONGVARCHAR}
trigger_msg = #{triggerMsg,jdbcType=LONGVARCHAR},
job_version_name = #{jobVersionName,jdbcType=VARCHAR}
where log_id = #{logId,jdbcType=INTEGER}
where log_id = #{logId,jdbcType=INTEGER}
</update>
</update>
...
@@ -323,7 +324,8 @@
...
@@ -323,7 +324,8 @@
run_time = #{runTime,jdbcType=DATE},
run_time = #{runTime,jdbcType=DATE},
run_type = #{runType,jdbcType=CHAR},
run_type = #{runType,jdbcType=CHAR},
trigger_code = #{triggerCode,jdbcType=VARCHAR},
trigger_code = #{triggerCode,jdbcType=VARCHAR},
trigger_time = #{triggerTime,jdbcType=DATE}
trigger_time = #{triggerTime,jdbcType=DATE},
job_version_name = #{jobVersionName,jdbcType=VARCHAR}
where log_id = #{logId,jdbcType=INTEGER}
where log_id = #{logId,jdbcType=INTEGER}
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobTaskScheduleMapper.xml
View file @
c3efbaf9
...
@@ -40,6 +40,8 @@
...
@@ -40,6 +40,8 @@
<result
column=
"run_source"
jdbcType=
"LONGVARCHAR"
property=
"runSource"
/>
<result
column=
"run_source"
jdbcType=
"LONGVARCHAR"
property=
"runSource"
/>
<result
column=
"add_time"
jdbcType=
"DATE"
property=
"addTime"
/>
<result
column=
"add_time"
jdbcType=
"DATE"
property=
"addTime"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
<result
column=
"author"
jdbcType=
"VARCHAR"
property=
"author"
/>
<result
column=
"version_id"
jdbcType=
"VARCHAR"
property=
"versionId"
/>
<result
column=
"version_name"
jdbcType=
"VARCHAR"
property=
"versionName"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -48,7 +50,7 @@
...
@@ -48,7 +50,7 @@
mail_action, node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type,
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,
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,
run_id, run_param, run_source_desc, script_urls, source_principal, source_update_time,
trigger_next_time, trigger_status,run_source,add_time,author
trigger_next_time, trigger_status,run_source,add_time,author
,version_id,version_name
</sql>
</sql>
<!--查询五秒内将要执行的数据-->
<!--查询五秒内将要执行的数据-->
<select
id=
"findJobTaskScheduleByTriggerNextTimeLessThanEqual"
resultMap=
"BaseResultMap"
>
<select
id=
"findJobTaskScheduleByTriggerNextTimeLessThanEqual"
resultMap=
"BaseResultMap"
>
...
@@ -80,7 +82,7 @@
...
@@ -80,7 +82,7 @@
retry_interval, routing_strategy, run_id,
retry_interval, routing_strategy, run_id,
run_param, run_source_desc, script_urls,
run_param, run_source_desc, script_urls,
source_principal, source_update_time, trigger_next_time,
source_principal, source_update_time, trigger_next_time,
trigger_status, run_source,add_time,author)
trigger_status, run_source,add_time,author
,version_id,version_name
)
values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR},
...
@@ -92,7 +94,8 @@
...
@@ -92,7 +94,8 @@
#{retryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR}, #{runId,jdbcType=VARCHAR},
#{retryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR}, #{runId,jdbcType=VARCHAR},
#{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR},
#{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR},
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT},
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT},
#{triggerStatus,jdbcType=CHAR}, #{runSource,jdbcType=LONGVARCHAR},#{addTime,jdbcType=DATE},#{author,jdbcType=VARCHAR})
#{triggerStatus,jdbcType=CHAR}, #{runSource,jdbcType=LONGVARCHAR},#{addTime,jdbcType=DATE},#{author,jdbcType=VARCHAR},
#{versionId,jdbcType=VARCHAR}, #{versionName,jdbcType=VARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobTaskSchedule"
>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.JobTaskSchedule"
>
insert into job_task_schedule
insert into job_task_schedule
...
@@ -208,6 +211,13 @@
...
@@ -208,6 +211,13 @@
<if
test=
"author != null"
>
<if
test=
"author != null"
>
author,
author,
</if>
</if>
<if
test=
"versionId != null"
>
version_id,
</if>
<if
test=
"versionName != null"
>
version_name,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
...
@@ -321,6 +331,12 @@
...
@@ -321,6 +331,12 @@
<if
test=
"author != null"
>
<if
test=
"author != null"
>
#{author,jdbcType=VARCHAR},
#{author,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"versionId != null"
>
#{versionId,jdbcType=VARCHAR},
</if>
<if
test=
"versionName != null"
>
#{versionName,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -337,7 +353,7 @@
...
@@ -337,7 +353,7 @@
retry_interval, routing_strategy, run_id,
retry_interval, routing_strategy, run_id,
run_param, run_source_desc, script_urls,
run_param, run_source_desc, script_urls,
source_principal, source_update_time, trigger_next_time,
source_principal, source_update_time, trigger_next_time,
trigger_status,run_source,add_time,author)
trigger_status,run_source,add_time,author
,version_id,version_name
)
values
values
<foreach
collection=
"jobTaskSchedules"
item=
"jobTaskSchedule"
separator =
","
>
<foreach
collection=
"jobTaskSchedules"
item=
"jobTaskSchedule"
separator =
","
>
(#{jobTaskSchedule.id,jdbcType=INTEGER}, #{jobTaskSchedule.nodeId,jdbcType=INTEGER}, #{jobTaskSchedule.alarmEmail,jdbcType=VARCHAR},
(#{jobTaskSchedule.id,jdbcType=INTEGER}, #{jobTaskSchedule.nodeId,jdbcType=INTEGER}, #{jobTaskSchedule.alarmEmail,jdbcType=VARCHAR},
...
@@ -352,7 +368,7 @@
...
@@ -352,7 +368,7 @@
#{jobTaskSchedule.runParam,jdbcType=VARCHAR}, #{jobTaskSchedule.runSourceDesc,jdbcType=VARCHAR}, #{jobTaskSchedule.scriptUrls,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.sourcePrincipal,jdbcType=VARCHAR}, #{jobTaskSchedule.sourceUpdateTime,jdbcType=DATE}, #{jobTaskSchedule.triggerNextTime,jdbcType=BIGINT},
#{jobTaskSchedule.triggerStatus,jdbcType=CHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR},#{jobTaskSchedule.addTime,jdbcType=DATE},
#{jobTaskSchedule.triggerStatus,jdbcType=CHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR},#{jobTaskSchedule.addTime,jdbcType=DATE},
#{jobTaskSchedule.author,jdbcType=VARCHAR})
#{jobTaskSchedule.author,jdbcType=VARCHAR}
,#{jobTaskSchedule.versionId,jdbcType=VARCHAR}, #{jobTaskSchedule.versionName,jdbcType=VARCHAR}
)
</foreach>
</foreach>
</insert>
</insert>
...
@@ -469,6 +485,13 @@
...
@@ -469,6 +485,13 @@
<if
test=
"author != null"
>
<if
test=
"author != null"
>
author = #{author,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"versionId != null"
>
version_id = #{versionId,jdbcType=VARCHAR},
</if>
<if
test=
"versionName != null"
>
version_name = #{versionName,jdbcType=VARCHAR},
</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