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
0ff927b5
Commit
0ff927b5
authored
May 13, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补批添加要补批的时间
parent
185bea57
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
10 deletions
+53
-10
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+1
-0
RunRecording.java
...admin-core/src/main/java/com/byit/model/RunRecording.java
+7
-0
WaitingRecord.java
...dmin-core/src/main/java/com/byit/model/WaitingRecord.java
+6
-0
RunRecordingMapper.xml
...min-core/src/main/resources/mapper/RunRecordingMapper.xml
+22
-9
WaitingRecordMapper.xml
...in-core/src/main/resources/mapper/WaitingRecordMapper.xml
+11
-1
RunRecording.java
...-core/src/main/java/com/byit/dto/plugin/RunRecording.java
+6
-0
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
0ff927b5
...
@@ -1004,6 +1004,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -1004,6 +1004,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
waitingRecord
.
setFlowNodeCount
(
nodeList
.
size
());
waitingRecord
.
setFlowNodeCount
(
nodeList
.
size
());
waitingRecord
.
setOperator
(
userName
);
waitingRecord
.
setOperator
(
userName
);
waitingRecord
.
setScheduleType
(
ScheduleTypeEnum
.
REPAIR
.
getCode
());
waitingRecord
.
setScheduleType
(
ScheduleTypeEnum
.
REPAIR
.
getCode
());
waitingRecord
.
setRepeatTime
(
repairTime
);
waitingRecord
.
setWaitOrder
(++
order
);
waitingRecord
.
setWaitOrder
(++
order
);
//需要按着时间先后来设置时间
//需要按着时间先后来设置时间
waitingRecord
.
setTriggerTime
(
System
.
currentTimeMillis
());
waitingRecord
.
setTriggerTime
(
System
.
currentTimeMillis
());
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/RunRecording.java
View file @
0ff927b5
...
@@ -160,6 +160,12 @@ public class RunRecording implements Serializable {
...
@@ -160,6 +160,12 @@ public class RunRecording implements Serializable {
private
Integer
workspaceId
;
private
Integer
workspaceId
;
/**
/**
* 补批时间
*/
@ApiModelProperty
(
"补批时间"
)
private
String
repeatTime
;
/**
*/
*/
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/WaitingRecord.java
View file @
0ff927b5
...
@@ -113,6 +113,11 @@ public class WaitingRecord implements Serializable {
...
@@ -113,6 +113,11 @@ public class WaitingRecord implements Serializable {
private
String
runId
;
private
String
runId
;
/**
/**
* 补批时间
*/
@ApiModelProperty
(
"补批时间"
)
private
String
repeatTime
;
/**
*/
*/
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/RunRecordingMapper.xml
View file @
0ff927b5
...
@@ -26,12 +26,13 @@
...
@@ -26,12 +26,13 @@
<result
column=
"operator"
jdbcType=
"VARCHAR"
property=
"operator"
/>
<result
column=
"operator"
jdbcType=
"VARCHAR"
property=
"operator"
/>
<result
column=
"re_run_id"
jdbcType=
"VARCHAR"
property=
"reRunId"
/>
<result
column=
"re_run_id"
jdbcType=
"VARCHAR"
property=
"reRunId"
/>
<result
column=
"workspace_id"
jdbcType=
"INTEGER"
property=
"workspaceId"
/>
<result
column=
"workspace_id"
jdbcType=
"INTEGER"
property=
"workspaceId"
/>
<result
column=
"repeat_time"
jdbcType=
"VARCHAR"
property=
"repeatTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
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,is_inner,fail_fast, flow_node_count, schedule_type, operator, re_run_id
flow_id, start_time, end_time, is_alarm,is_inner,fail_fast, flow_node_count, schedule_type, operator, re_run_id
,workspace_id
,workspace_id
, repeat_time
</sql>
</sql>
<select
id=
"findAll"
parameterType=
"com.byit.dto.FlowConditionDto"
resultMap=
"BaseResultMap"
>
<select
id=
"findAll"
parameterType=
"com.byit.dto.FlowConditionDto"
resultMap=
"BaseResultMap"
>
...
@@ -187,12 +188,12 @@
...
@@ -187,12 +188,12 @@
</select>
</select>
<select
id=
"findByRunIdAndFlowName"
resultMap=
"BaseResultMap"
>
<select
id=
"findByRunIdAndFlowName"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from run_recording
from run_recording
where run_id = #{runId,jdbcType=VARCHAR} and flow_name = #{flowName,jdbcType=VARCHAR}
where run_id = #{runId,jdbcType=VARCHAR} and flow_name = #{flowName,jdbcType=VARCHAR}
</select>
</select>
<select
id=
"findUnFinishByFlowId"
resultMap=
"BaseResultMap"
>
<select
id=
"findUnFinishByFlowId"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -208,8 +209,8 @@
...
@@ -208,8 +209,8 @@
sum(case when flow_status='4' and (flow_run_result = '2' or flow_run_result = '4') then 1 else 0 end ) fail,
sum(case when flow_status='4' and (flow_run_result = '2' or flow_run_result = '4') then 1 else 0 end ) fail,
sum(case when flow_run_result='5' then 1 else 0 end ) 'kill'
sum(case when flow_run_result='5' then 1 else 0 end ) 'kill'
from run_recording
from run_recording
where
start_time
>
= #{startTime}
where
(end_time
<
= #{endTime} or start_time
<
= #{endTime})
and start_time
&
lt;
= #{end
Time}
and start_time
&
gt;
= #{start
Time}
<if
test=
"flowIdList != null"
>
<if
test=
"flowIdList != null"
>
and flow_id in (
and flow_id in (
<foreach
collection=
"flowIdList"
item=
"flowId"
separator=
","
>
<foreach
collection=
"flowIdList"
item=
"flowId"
separator=
","
>
...
@@ -355,6 +356,9 @@
...
@@ -355,6 +356,9 @@
<if
test=
"workspaceId != null"
>
<if
test=
"workspaceId != null"
>
workspace_id,
workspace_id,
</if>
</if>
<if
test=
"repeatTime != null"
>
repeat_time,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"recordingId != null"
>
<if
test=
"recordingId != null"
>
...
@@ -429,6 +433,9 @@
...
@@ -429,6 +433,9 @@
<if
test=
"workspaceId != null"
>
<if
test=
"workspaceId != null"
>
#{workspaceId,jdbcType=INTEGER},
#{workspaceId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"repeatTime != null"
>
#{repeatTime,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateRunRecordingById"
parameterType=
"com.byit.model.RunRecording"
>
<update
id=
"updateRunRecordingById"
parameterType=
"com.byit.model.RunRecording"
>
...
@@ -503,6 +510,9 @@
...
@@ -503,6 +510,9 @@
<if
test=
"workspaceId != null"
>
<if
test=
"workspaceId != null"
>
workspace_id = #{workspaceId,jdbcType=INTEGER},
workspace_id = #{workspaceId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"repeatTime != null"
>
repeat_time = #{repeatTime,jdbcType=VARCHAR},
</if>
</set>
</set>
where recording_id = #{recordingId,jdbcType=INTEGER}
where recording_id = #{recordingId,jdbcType=INTEGER}
</update>
</update>
...
@@ -579,6 +589,9 @@
...
@@ -579,6 +589,9 @@
<if
test=
"workspaceId != null"
>
<if
test=
"workspaceId != null"
>
workspace_id = #{workspaceId,jdbcType=INTEGER},
workspace_id = #{workspaceId,jdbcType=INTEGER},
</if>
</if>
<if
test=
"repeatTime != null"
>
repeat_time = #{repeatTime,jdbcType=VARCHAR},
</if>
</set>
</set>
where flow_id = #{flowId,jdbcType=INTEGER} and run_id = #{runId,jdbcType=VARCHAR}
where flow_id = #{flowId,jdbcType=INTEGER} and run_id = #{runId,jdbcType=VARCHAR}
</update>
</update>
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/WaitingRecordMapper.xml
View file @
0ff927b5
...
@@ -19,12 +19,13 @@
...
@@ -19,12 +19,13 @@
<result
column=
"operator"
jdbcType=
"VARCHAR"
property=
"operator"
/>
<result
column=
"operator"
jdbcType=
"VARCHAR"
property=
"operator"
/>
<result
column=
"wait_order"
jdbcType=
"INTEGER"
property=
"waitOrder"
/>
<result
column=
"wait_order"
jdbcType=
"INTEGER"
property=
"waitOrder"
/>
<result
column=
"run_id"
jdbcType=
"VARCHAR"
property=
"runId"
/>
<result
column=
"run_id"
jdbcType=
"VARCHAR"
property=
"runId"
/>
<result
column=
"repeat_time"
jdbcType=
"VARCHAR"
property=
"repeatTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
<!-- generated @mbg.generated date: 2020-03-12 -->
<!-- generated @mbg.generated date: 2020-03-12 -->
wait_id, flow_id, flow_name, flow_version_name, flow_timeout, alarm_email, alarml_action,
wait_id, flow_id, flow_name, flow_version_name, flow_timeout, alarm_email, alarml_action,
priority, trigger_time, principal, is_inner, flow_node_count, schedule_type, `operator`,
priority, trigger_time, principal, is_inner, flow_node_count, schedule_type, `operator`,
wait_order, run_id
wait_order, run_id
, repeat_time
</sql>
</sql>
<select
id=
"findAllByTriggerTime"
resultMap=
"BaseResultMap"
>
<select
id=
"findAllByTriggerTime"
resultMap=
"BaseResultMap"
>
...
@@ -125,6 +126,9 @@
...
@@ -125,6 +126,9 @@
<if
test=
"runId != null"
>
<if
test=
"runId != null"
>
run_id,
run_id,
</if>
</if>
<if
test=
"repeatTime != null"
>
repeat_time,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"waitId != null"
>
<if
test=
"waitId != null"
>
...
@@ -175,6 +179,9 @@
...
@@ -175,6 +179,9 @@
<if
test=
"runId != null"
>
<if
test=
"runId != null"
>
#{runId,jdbcType=VARCHAR},
#{runId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"repeatTime != null"
>
#{repeatTime,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateByIdSelective"
parameterType=
"com.byit.model.WaitingRecord"
>
<update
id=
"updateByIdSelective"
parameterType=
"com.byit.model.WaitingRecord"
>
...
@@ -226,6 +233,9 @@
...
@@ -226,6 +233,9 @@
<if
test=
"runId != null"
>
<if
test=
"runId != null"
>
run_id = #{runId,jdbcType=VARCHAR},
run_id = #{runId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"repeatTime != null"
>
repeat_time = #{repeatTime,jdbcType=VARCHAR},
</if>
</set>
</set>
where wait_id = #{waitId,jdbcType=INTEGER}
where wait_id = #{waitId,jdbcType=INTEGER}
</update>
</update>
...
...
byit-myth-core/myth-dto-core/src/main/java/com/byit/dto/plugin/RunRecording.java
View file @
0ff927b5
package
com
.
byit
.
dto
.
plugin
;
package
com
.
byit
.
dto
.
plugin
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -125,6 +126,11 @@ public class RunRecording implements Serializable {
...
@@ -125,6 +126,11 @@ public class RunRecording implements Serializable {
*/
*/
private
String
operator
;
private
String
operator
;
/**
* 补批时间
*/
private
String
repeatTime
;
/**
/**
*/
*/
...
...
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