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
80d1a0f5
Commit
80d1a0f5
authored
May 06, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计
parent
e35a96f6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+3
-3
FlowStatusSnapshootMapper.java
.../main/java/com/byit/mapper/FlowStatusSnapshootMapper.java
+1
-1
FlowStatusSnapshootMapper.xml
...e/src/main/resources/mapper/FlowStatusSnapshootMapper.xml
+7
-0
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
80d1a0f5
...
...
@@ -761,9 +761,9 @@ public class ApiFlowServiceImpl implements ApiFlowService {
nodeStatisticData
=
new
StatisticData
();
nodeStatisticData
.
setUnstart
(
nodeList
.
size
());
}
else
{
nodeStatisticData
.
setUnstart
(
nodeList
.
size
()
-
nodeStatisticData
.
get
Unstart
());
nodeStatisticData
.
setUnstart
(
nodeList
.
size
()
-
nodeStatisticData
.
get
Fail
()
-
nodeStatisticData
.
getStop
()
-
nodeStatisticData
.
getRunIng
()
-
nodeStatisticData
.
getSuccess
()
-
nodeStatisticData
.
getKill
());
}
List
<
FlowStatusSnapshoot
>
flowStatusSnapshootList
=
flowStatusSnapshootMapper
.
findByTime
(
startTime
,
endTime
);
List
<
FlowStatusSnapshoot
>
flowStatusSnapshootList
=
flowStatusSnapshootMapper
.
findByTime
(
flowIdList
,
startTime
,
endTime
);
Map
<
String
,
StatisticData
>
flowCollectMap
=
new
HashMap
<>();
Map
<
String
,
StatisticData
>
nodeCollectMap
=
new
HashMap
<>();
...
...
@@ -864,7 +864,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
}
else
{
nodeStatisticData
.
setUnstart
(
nodeList
.
size
()
-
nodeStatisticData
.
getFail
()
-
nodeStatisticData
.
getStop
()
-
nodeStatisticData
.
getRunIng
()
-
nodeStatisticData
.
getSuccess
()
-
nodeStatisticData
.
getKill
());
}
List
<
FlowStatusSnapshoot
>
flowStatusSnapshootList
=
flowStatusSnapshootMapper
.
findByTime
(
startTime
,
endTime
);
List
<
FlowStatusSnapshoot
>
flowStatusSnapshootList
=
flowStatusSnapshootMapper
.
findByTime
(
flowIdList
,
startTime
,
endTime
);
Map
<
String
,
StatisticData
>
nodeCollectMap
=
new
HashMap
<>();
flowStatusSnapshootList
.
forEach
(
flowStatusSnapshoot
->
{
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/FlowStatusSnapshootMapper.java
View file @
80d1a0f5
...
...
@@ -46,7 +46,7 @@ public interface FlowStatusSnapshootMapper {
* @param endTime
* @return
*/
List
<
FlowStatusSnapshoot
>
findByTime
(
@Param
(
"startTime"
)
Long
startTime
,
@Param
(
"endTime"
)
Long
endTime
);
List
<
FlowStatusSnapshoot
>
findByTime
(
@Param
(
"
flowIdList"
)
List
<
Integer
>
flowIdList
,
@Param
(
"
startTime"
)
Long
startTime
,
@Param
(
"endTime"
)
Long
endTime
);
/**
* 根据天、小时、工作流id获取快照信息
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/FlowStatusSnapshootMapper.xml
View file @
80d1a0f5
...
...
@@ -204,6 +204,13 @@
from flow_status_snapshoot
where snapshoot_time
>
= #{startTime}
and snapshoot_time
<
= #{endTime}
<if
test=
"flowIdList != null"
>
and flow_id in (
<foreach
collection=
"flowIdList"
item=
"flowId"
separator=
","
>
#{flowId}
</foreach>
)
</if>
</select>
<select
id=
"findByDateAndHourAndFlowId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
...
...
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