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
d94a4f06
Commit
d94a4f06
authored
May 11, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计方式
parent
385655d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
StatusSnapshootThreadRunHelper.java
...om/byit/thread/helper/StatusSnapshootThreadRunHelper.java
+7
-2
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/StatusSnapshootThreadRunHelper.java
View file @
d94a4f06
...
...
@@ -101,8 +101,13 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
String
preHourDate
=
preHourLocalDateTime
.
format
(
DATE_FORMATTER
);
String
preHourHour
=
String
.
valueOf
(
preHourLocalDateTime
.
getHour
());
List
<
FlowStatusSnapshoot
>
preHourFlowStatusSnapshootList
=
flowStatusSnapshootMapper
.
findByDateAndHourAndFlowId
(
preHourDate
,
preHourHour
,
flow
.
getFlowId
());
if
(
null
!=
preHourFlowStatusSnapshootList
||
preHourFlowStatusSnapshootList
.
size
()
>
0
){
flowStatusSnapshootList
.
addAll
(
preHourFlowStatusSnapshootList
);
if
(
null
!=
preHourFlowStatusSnapshootList
&&
preHourFlowStatusSnapshootList
.
size
()
>
0
){
preHourFlowStatusSnapshootList
.
forEach
(
preHourFlowStatusSnapshoot
->{
preHourFlowStatusSnapshoot
.
setDay
(
date
);
preHourFlowStatusSnapshoot
.
setHour
(
hour
);
preHourFlowStatusSnapshoot
.
setSnapshootTime
(
hourTime
);
flowStatusSnapshootList
.
add
(
preHourFlowStatusSnapshoot
);
});
}
else
{
//如果上个小时也没有,就设置为未运行
flowStatusSnapshoot
.
setFlowStatus
(
1
);
...
...
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