Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
Project
Project
Details
Activity
Releases
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
姚本章
jz-dmp-service
Commits
4726f8d6
Commit
4726f8d6
authored
Mar 05, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
cd4b5211
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
ExecutionFlowsMapper.xml
src/main/resources/azkabanmapper/ExecutionFlowsMapper.xml
+18
-1
No files found.
src/main/resources/azkabanmapper/ExecutionFlowsMapper.xml
View file @
4726f8d6
...
...
@@ -187,7 +187,7 @@
#{item}
</foreach>
<if
test=
"startTime != null and startTime != ''"
>
and from_unixtime(submit_time/1000,'%Y-%m-%d %H:%i:%s') >=#{startTime}
</if>
<if
test=
"endTime != null and endTime != ''"
>
#{endTime} >= and
from_unixtime(submit_time/1000,'%Y-%m-%d %H:%i:%s')
</if>
<if
test=
"endTime != null and endTime != ''"
>
and #{endTime} >=
from_unixtime(submit_time/1000,'%Y-%m-%d %H:%i:%s')
</if>
</select>
<!-- <resultMap type="java.util.HashMap" id="taskExamplesLog">
...
...
@@ -207,5 +207,22 @@
from execution_logs
where 1=1 and exec_id=#{execId}
</select>
<!--统计实例状态数-->
<select
id=
"queryTaskInstanceStatus"
resultType=
"java.util.Map"
>
select
t.*,
sum(t.running+t.success +t.failed) manualNum
from(
SELECT
sum(case when status='30' then 1 else 0 end) running,
sum(case when status='50' then 1 else 0 end) success,
sum(case when status='60' then 1 else 0 end) killed,
sum(case when status='70' then 1 else 0 end) failed
FROM execution_flows
)t
</select>
<select
id=
"queryLastStatus"
resultType=
"java.util.Map"
>
</select>
</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