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
0316b882
Commit
0316b882
authored
May 29, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决快照报错的问题
parent
227d80d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
DaemonScanThreadRunHelperRedisLock.java
.../com/byit/factory/DaemonScanThreadRunHelperRedisLock.java
+1
-1
FlowStatusSnapshootServiceImpl.java
...com/byit/service/impl/FlowStatusSnapshootServiceImpl.java
+3
-0
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/factory/DaemonScanThreadRunHelperRedisLock.java
View file @
0316b882
...
...
@@ -55,7 +55,7 @@ public class DaemonScanThreadRunHelperRedisLock extends BaseDaemonScanThreadRunH
log
.
error
(
"---------{}---------"
,
e
.
getMessage
());
}
}
sleepTime
=
sleepTime
==
null
?
examplesValue
.
UNIVERSAL_WAIT_TIME
:
sleepTime
;
sleepTime
=
sleepTime
==
null
||
sleepTime
<=
0
?
examplesValue
.
UNIVERSAL_WAIT_TIME
:
sleepTime
;
dateAligned
(
sleepTime
,
threadName
);
}
});
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/FlowStatusSnapshootServiceImpl.java
View file @
0316b882
...
...
@@ -40,6 +40,9 @@ public class FlowStatusSnapshootServiceImpl implements FlowStatusSnapshootServic
String
thisHourStr
=
DateUtil
.
dateFormat
(
new
Date
(),
"HH"
);
String
hourBefStr
=
String
.
valueOf
(
Integer
.
parseInt
(
thisHourStr
)+
1
);
if
(
hourBefStr
.
length
()
==
1
)
{
hourBefStr
=
"0"
+
hourBefStr
;
}
//20201212 12:12:12
Date
date
=
DateUtil
.
strFormatDate
(
thisDateStr
+
" "
+
hourBefStr
+
":00:00"
,
"yyyy-MM-dd HH:mm:ss"
);
long
between
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
between
(
new
Date
(),
date
,
DateUnit
.
MINUTE
);
...
...
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