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
e086a3c4
Commit
e086a3c4
authored
May 21, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间格式初始化
parent
7fd8913b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+6
-6
ApiNodeServiceImpl.java
...c/main/java/com/byit/service/impl/ApiNodeServiceImpl.java
+1
-0
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
e086a3c4
...
...
@@ -850,16 +850,16 @@ public class ApiFlowServiceImpl implements ApiFlowService {
StatisticData
figFlowStatisticData
=
new
StatisticData
();
Map
<
Integer
,
Long
>
integerLongMap
=
flowStatusSnapshoots
.
stream
().
collect
(
Collectors
.
groupingBy
(
FlowStatusSnapshoot:
:
getFlowStatus
,
Collectors
.
counting
()));
//未运行的
long
waitFigFlowCount
=
integerLongMap
.
get
(
"1"
)
==
null
?
0
:
integerLongMap
.
get
(
"1"
);
long
waitFigFlowCount
=
integerLongMap
.
get
(
1
)
==
null
?
0
:
integerLongMap
.
get
(
1
);
//运行中的 暂停的
long
runFigFlowCount
=
integerLongMap
.
get
(
"2"
)
==
null
?
0
:
integerLongMap
.
get
(
"2"
);
long
stopFigFlowCount
=
integerLongMap
.
get
(
"3"
)
==
null
?
0
:
integerLongMap
.
get
(
"3"
);
long
runFigFlowCount
=
integerLongMap
.
get
(
2
)
==
null
?
0
:
integerLongMap
.
get
(
2
);
long
stopFigFlowCount
=
integerLongMap
.
get
(
3
)
==
null
?
0
:
integerLongMap
.
get
(
3
);
long
figRunTotal
=
runFigFlowCount
+
stopFigFlowCount
;
//成功的
long
successFigFlowCount
=
integerLongMap
.
get
(
"4"
)
==
null
?
0
:
integerLongMap
.
get
(
"4"
);
long
successFigFlowCount
=
integerLongMap
.
get
(
4
)
==
null
?
0
:
integerLongMap
.
get
(
4
);
//失败的
long
errorFigFlowCount
=
integerLongMap
.
get
(
"5"
)
==
null
?
0
:
integerLongMap
.
get
(
"5"
);
long
killFigFlowCount
=
integerLongMap
.
get
(
"6"
)
==
null
?
0
:
integerLongMap
.
get
(
"6"
);
long
errorFigFlowCount
=
integerLongMap
.
get
(
5
)
==
null
?
0
:
integerLongMap
.
get
(
5
);
long
killFigFlowCount
=
integerLongMap
.
get
(
6
)
==
null
?
0
:
integerLongMap
.
get
(
6
);
long
figErrorTotal
=
errorFigFlowCount
+
killFigFlowCount
;
figFlowStatisticData
.
setUnstart
((
int
)
waitFigFlowCount
);
figFlowStatisticData
.
setFail
((
int
)
figErrorTotal
);
...
...
byit-myth-admin/src/main/java/com/byit/service/impl/ApiNodeServiceImpl.java
View file @
e086a3c4
...
...
@@ -192,6 +192,7 @@ public class ApiNodeServiceImpl implements ApiNodeService {
JavaTask
oldJavaTask
=
javaTaskMapper
.
findByJobName
(
javaTask
.
getJobName
());
ValidationUtil
.
isTrueValidation
(
null
!=
oldJavaTask
,
javaTask
.
getJobName
()
+
"的任务已存在!"
);
javaTask
.
setCreateTime
(
new
Date
());
javaTask
.
setId
(
null
);
javaTaskMapper
.
insertSelective
(
javaTask
);
}
...
...
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