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
4367a109
Commit
4367a109
authored
Apr 08, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
42691cdb
a5027f25
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+6
-3
StatusSnapshootThreadRunHelper.java
...om/byit/thread/helper/StatusSnapshootThreadRunHelper.java
+2
-3
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
4367a109
...
@@ -855,9 +855,12 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -855,9 +855,12 @@ public class ApiFlowServiceImpl implements ApiFlowService {
}
}
StatisticData
nodeStatisticData
=
jobTaskRunLogMapper
.
findStatusByStartAndEndTime
(
new
Date
(
startTime
),
new
Date
(
endTime
),
flowIdList
);
StatisticData
nodeStatisticData
=
jobTaskRunLogMapper
.
findStatusByStartAndEndTime
(
new
Date
(
startTime
),
new
Date
(
endTime
),
flowIdList
);
StatisticData
unstartNodeStatisticData
=
waitingTaskMapper
.
findStatusByStartAndEndTime
(
flowIdList
);
List
<
Node
>
nodeList
=
nodeMapper
.
findbyFlowIds
(
flowIdList
);
if
(
null
!=
unstartNodeStatisticData
){
if
(
null
==
nodeStatisticData
){
nodeStatisticData
.
setUnstart
(
nodeStatisticData
.
getUnstart
()
+
unstartNodeStatisticData
.
getUnstart
());
nodeStatisticData
=
new
StatisticData
();
nodeStatisticData
.
setUnstart
(
nodeList
.
size
());
}
else
{
nodeStatisticData
.
setUnstart
(
nodeList
.
size
()
-
nodeStatisticData
.
getUnstart
());
}
}
List
<
FlowStatusSnapshoot
>
flowStatusSnapshootList
=
flowStatusSnapshootMapper
.
findByTime
(
startTime
,
endTime
);
List
<
FlowStatusSnapshoot
>
flowStatusSnapshootList
=
flowStatusSnapshootMapper
.
findByTime
(
startTime
,
endTime
);
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/StatusSnapshootThreadRunHelper.java
View file @
4367a109
...
@@ -76,11 +76,10 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
...
@@ -76,11 +76,10 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
//统计运行实例的数据
//统计运行实例的数据
//如果存在实例
//如果存在实例
if
(
runRecording
!=
null
){
if
(
runRecording
!=
null
){
//获取凌晨的时间戳
//获取上一个时间
Long
time
=
LocalDate
.
now
().
atStartOfDay
(
ZoneOffset
.
ofHours
(
8
)).
toInstant
().
toEpochMilli
();
Long
preHourTime
=
hourDateTime
.
minusHours
(
1
).
toInstant
(
ZoneOffset
.
of
(
"+8"
)).
toEpochMilli
();
Long
preHourTime
=
hourDateTime
.
minusHours
(
1
).
toInstant
(
ZoneOffset
.
of
(
"+8"
)).
toEpochMilli
();
//从凌晨到现在是否有运行实例
//从凌晨到现在是否有运行实例
if
(
preHourTime
.
longValue
()
<
runRecording
.
getTriggerTime
().
longValue
()){
if
(
preHourTime
.
longValue
()
>
runRecording
.
getTriggerTime
().
longValue
()){
flowStatusSnapshoot
.
setFlowStatus
(
1
);
flowStatusSnapshoot
.
setFlowStatus
(
1
);
flowStatusSnapshoot
.
setUnstartNode
(
flow
.
getFlowNodeCount
());
flowStatusSnapshoot
.
setUnstartNode
(
flow
.
getFlowNodeCount
());
}
else
{
//存在工作流的运行实例
}
else
{
//存在工作流的运行实例
...
...
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