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
469f0d68
Commit
469f0d68
authored
Dec 25, 2019
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【数据库增加字段】表运行记录表增加字段,标识是否是内嵌工作流
parent
e8847a8e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
52 deletions
+46
-52
RunRecordingMapper.java
...ore/src/main/java/com/byit/mapper/RunRecordingMapper.java
+27
-10
RunRecording.java
...admin-core/src/main/java/com/byit/model/RunRecording.java
+5
-1
RunRecordingMapper.xml
...min-core/src/main/resources/mapper/RunRecordingMapper.xml
+14
-41
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/RunRecordingMapper.java
View file @
469f0d68
...
@@ -2,16 +2,34 @@ package com.byit.mapper;
...
@@ -2,16 +2,34 @@ package com.byit.mapper;
import
com.byit.model.RunRecording
;
import
com.byit.model.RunRecording
;
/**
* @author 删除数据
*/
public
interface
RunRecordingMapper
{
public
interface
RunRecordingMapper
{
int
deleteById
(
Integer
recordingId
);
/**
* 根据ID查询
int
insert
(
RunRecording
record
);
* @param recordingId
* @return
int
insertSelective
(
RunRecording
record
);
*/
RunRecording
findRunRecordingById
(
Integer
recordingId
);
/**
* 保存数据
* @param record
* @return
*/
int
saveRunRecording
(
RunRecording
record
);
RunRecording
getById
(
Integer
recordingId
);
/**
* 修改数据
int
updateByIdSelective
(
RunRecording
record
);
* @param record
* @return
*/
int
updateRunRecordingById
(
RunRecording
record
);
/**
* 根据ID删除
* @param recordingId
* @return
*/
int
deleteById
(
Integer
recordingId
);
int
updateById
(
RunRecording
record
);
}
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/RunRecording.java
View file @
469f0d68
...
@@ -113,7 +113,11 @@ public class RunRecording implements Serializable {
...
@@ -113,7 +113,11 @@ public class RunRecording implements Serializable {
*/
*/
@ApiModelProperty
(
"是否已告警(0,是 1,否)"
)
@ApiModelProperty
(
"是否已告警(0,是 1,否)"
)
private
String
isAlarm
;
private
String
isAlarm
;
/**
* 是否是内嵌工作流 0 否, 1 是
*/
@ApiModelProperty
(
"是否是内嵌工作流 0 否, 1 是"
)
private
String
isInner
;
/**
/**
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/RunRecordingMapper.xml
View file @
469f0d68
...
@@ -20,14 +20,15 @@
...
@@ -20,14 +20,15 @@
<result
column=
"start_time"
jdbcType=
"TIMESTAMP"
property=
"startTime"
/>
<result
column=
"start_time"
jdbcType=
"TIMESTAMP"
property=
"startTime"
/>
<result
column=
"end_time"
jdbcType=
"TIMESTAMP"
property=
"endTime"
/>
<result
column=
"end_time"
jdbcType=
"TIMESTAMP"
property=
"endTime"
/>
<result
column=
"is_alarm"
jdbcType=
"CHAR"
property=
"isAlarm"
/>
<result
column=
"is_alarm"
jdbcType=
"CHAR"
property=
"isAlarm"
/>
<result
column=
"is_inner"
jdbcType=
"CHAR"
property=
"isInner"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2019-12-25 -->
<!-- generated @mbg.generated date: 2019-12-25 -->
recording_id, run_id, alarm_email, dispatch_ip, flow_name, flow_run_result, flow_status,
recording_id, run_id, alarm_email, dispatch_ip, flow_name, flow_run_result, flow_status,
flow_timeout, flow_version_name, alarml_action, priority, trigger_time, principal,
flow_timeout, flow_version_name, alarml_action, priority, trigger_time, principal,
flow_id, start_time, end_time, is_alarm
flow_id, start_time, end_time, is_alarm
,is_inner
</sql>
</sql>
<select
id=
"
get
ById"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"
findRunRecording
ById"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!-- generated @mbg.generated date: 2019-12-25 -->
<!-- generated @mbg.generated date: 2019-12-25 -->
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -39,22 +40,7 @@
...
@@ -39,22 +40,7 @@
delete from run_recording
delete from run_recording
where recording_id = #{recordingId,jdbcType=INTEGER}
where recording_id = #{recordingId,jdbcType=INTEGER}
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"com.byit.model.RunRecording"
>
<insert
id=
"saveRunRecording"
parameterType=
"com.byit.model.RunRecording"
>
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into run_recording (recording_id, run_id, alarm_email,
dispatch_ip, flow_name, flow_run_result,
flow_status, flow_timeout, flow_version_name,
alarml_action, priority, trigger_time,
principal, flow_id, start_time,
end_time, is_alarm)
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}, #{flowVersionName,jdbcType=INTEGER},
#{alarmlAction,jdbcType=CHAR}, #{priority,jdbcType=CHAR}, #{triggerTime,jdbcType=BIGINT},
#{principal,jdbcType=VARCHAR}, #{flowId,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP}, #{isAlarm,jdbcType=CHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.byit.model.RunRecording"
>
<!-- generated @mbg.generated date: 2019-12-25 -->
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into run_recording
insert into run_recording
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -109,6 +95,9 @@
...
@@ -109,6 +95,9 @@
<if
test=
"isAlarm != null"
>
<if
test=
"isAlarm != null"
>
is_alarm,
is_alarm,
</if>
</if>
<if
test=
"isInner != null"
>
is_inner,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"recordingId != null"
>
<if
test=
"recordingId != null"
>
...
@@ -162,9 +151,12 @@
...
@@ -162,9 +151,12 @@
<if
test=
"isAlarm != null"
>
<if
test=
"isAlarm != null"
>
#{isAlarm,jdbcType=CHAR},
#{isAlarm,jdbcType=CHAR},
</if>
</if>
<if
test=
"isInner != null"
>
#{isInner,jdbcType=CHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"update
ByIdSelective
"
parameterType=
"com.byit.model.RunRecording"
>
<update
id=
"update
RunRecordingById
"
parameterType=
"com.byit.model.RunRecording"
>
<!-- generated @mbg.generated date: 2019-12-25 -->
<!-- generated @mbg.generated date: 2019-12-25 -->
update run_recording
update run_recording
<set>
<set>
...
@@ -216,28 +208,10 @@
...
@@ -216,28 +208,10 @@
<if
test=
"isAlarm != null"
>
<if
test=
"isAlarm != null"
>
is_alarm = #{isAlarm,jdbcType=CHAR},
is_alarm = #{isAlarm,jdbcType=CHAR},
</if>
</if>
<if
test=
"isInner != null"
>
is_inner = #{isInner,jdbcType=CHAR},
</if>
</set>
</set>
where recording_id = #{recordingId,jdbcType=INTEGER}
where recording_id = #{recordingId,jdbcType=INTEGER}
</update>
</update>
<update
id=
"updateById"
parameterType=
"com.byit.model.RunRecording"
>
<!-- generated @mbg.generated date: 2019-12-25 -->
update run_recording
set run_id = #{runId,jdbcType=VARCHAR},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
dispatch_ip = #{dispatchIp,jdbcType=VARCHAR},
flow_name = #{flowName,jdbcType=VARCHAR},
flow_run_result = #{flowRunResult,jdbcType=CHAR},
flow_status = #{flowStatus,jdbcType=CHAR},
flow_timeout = #{flowTimeout,jdbcType=BIGINT},
flow_version_name = #{flowVersionName,jdbcType=INTEGER},
alarml_action = #{alarmlAction,jdbcType=CHAR},
priority = #{priority,jdbcType=CHAR},
trigger_time = #{triggerTime,jdbcType=BIGINT},
principal = #{principal,jdbcType=VARCHAR},
flow_id = #{flowId,jdbcType=INTEGER},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
is_alarm = #{isAlarm,jdbcType=CHAR}
where recording_id = #{recordingId,jdbcType=INTEGER}
</update>
</mapper>
</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