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
1e942b7a
Commit
1e942b7a
authored
Apr 07, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改占位符
parent
2936c2ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
FlowStatusSnapshootMapper.xml
...e/src/main/resources/mapper/FlowStatusSnapshootMapper.xml
+2
-2
JobTaskRunLogMapper.xml
...in-core/src/main/resources/mapper/JobTaskRunLogMapper.xml
+2
-2
RunRecordingMapper.xml
...min-core/src/main/resources/mapper/RunRecordingMapper.xml
+6
-5
No files found.
byit-myth-core/myth-admin-core/src/main/resources/mapper/FlowStatusSnapshootMapper.xml
View file @
1e942b7a
...
@@ -202,8 +202,8 @@
...
@@ -202,8 +202,8 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from flow_status_snapshoot
from flow_status_snapshoot
where snapshoot_time
>
=
$
{startDate}
where snapshoot_time
>
=
#
{startDate}
and snapshoot_time
<
=
$
{endDate}
and snapshoot_time
<
=
#
{endDate}
</select>
</select>
<delete
id=
"deleteOutSnapShoot"
parameterType=
"java.lang.Long"
>
<delete
id=
"deleteOutSnapShoot"
parameterType=
"java.lang.Long"
>
delete from flow_status_snapshoot
delete from flow_status_snapshoot
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/JobTaskRunLogMapper.xml
View file @
1e942b7a
...
@@ -127,8 +127,8 @@
...
@@ -127,8 +127,8 @@
sum(case when run_code = '2' or run_code = '4' or run_code = '6' then 1 else 0 end) as fail,
sum(case when run_code = '2' or run_code = '4' or run_code = '6' then 1 else 0 end) as fail,
sum(case when run_code = '5' then 1 else 0 end) as 'kill'
sum(case when run_code = '5' then 1 else 0 end) as 'kill'
from job_task_run_log
from job_task_run_log
where start_time
>
=
$
{startDate}
where start_time
>
=
#
{startDate}
and end_time
<
=
$
{endDate}
and end_time
<
=
#
{endDate}
<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=
","
>
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/RunRecordingMapper.xml
View file @
1e942b7a
...
@@ -120,14 +120,14 @@
...
@@ -120,14 +120,14 @@
<if
test=
"scheduleStatusList != null"
>
<if
test=
"scheduleStatusList != null"
>
and flow_status in (
and flow_status in (
<foreach
collection=
"scheduleStatusList"
item=
"scheduleStatus"
separator=
","
>
<foreach
collection=
"scheduleStatusList"
item=
"scheduleStatus"
separator=
","
>
$
{scheduleStatus}
#
{scheduleStatus}
</foreach>
</foreach>
)
)
</if>
</if>
<if
test=
"executeStatusList != null"
>
<if
test=
"executeStatusList != null"
>
and flow_run_result in (
and flow_run_result in (
<foreach
collection=
"executeStatusList"
item=
"executeStatus"
separator=
","
>
<foreach
collection=
"executeStatusList"
item=
"executeStatus"
separator=
","
>
$
{executeStatus}
#
{executeStatus}
</foreach>
</foreach>
)
)
</if>
</if>
...
@@ -156,8 +156,8 @@
...
@@ -156,8 +156,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
>
=
$
{startDate}
where start_time
>
=
#
{startDate}
and end_time
<
=
$
{endDate}
and end_time
<
=
#
{endDate}
<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=
","
>
...
@@ -488,7 +488,7 @@
...
@@ -488,7 +488,7 @@
<update
id=
"killInnerFlow"
>
<update
id=
"killInnerFlow"
>
update run_recording set flow_status = '4',flow_run_result = '5'
update run_recording set flow_status = '4',flow_run_result = '5'
where run_id = #{runId,jdbcType=VARCHAR}
where run_id = #{runId,jdbcType=VARCHAR}
and flow_name =
$
{flowName,jdbcType=VARCHAR}
and flow_name =
#
{flowName,jdbcType=VARCHAR}
</update>
</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