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
7fd8913b
Commit
7fd8913b
authored
May 21, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间格式初始化
parent
43eb2af6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
FlowStatusSnapshootServiceImpl.java
...com/byit/service/impl/FlowStatusSnapshootServiceImpl.java
+2
-2
JobSnapshotThreadRunHelper.java
...va/com/byit/thread/helper/JobSnapshotThreadRunHelper.java
+1
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/FlowStatusSnapshootServiceImpl.java
View file @
7fd8913b
...
...
@@ -36,12 +36,12 @@ public class FlowStatusSnapshootServiceImpl implements FlowStatusSnapshootServic
return
;
}
//获取当天的日期
String
thisDateStr
=
DateUtil
.
dateFormat
(
new
Date
(),
"yyyy
MM
dd"
);
String
thisDateStr
=
DateUtil
.
dateFormat
(
new
Date
(),
"yyyy
-MM-
dd"
);
String
thisHourStr
=
DateUtil
.
dateFormat
(
new
Date
(),
"HH"
);
String
hourBefStr
=
String
.
valueOf
(
Integer
.
parseInt
(
thisHourStr
)+
1
);
//20201212 12:12:12
Date
date
=
DateUtil
.
strFormatDate
(
thisDateStr
+
" "
+
hourBefStr
+
":00:00"
,
"yyyy
MM
dd HH:mm:ss"
);
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
);
if
(
between
>
3
)
{
log
.
info
(
"--------开始删除当前点数的工作流快照----------"
);
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/JobSnapshotThreadRunHelper.java
View file @
7fd8913b
...
...
@@ -342,7 +342,7 @@ public class JobSnapshotThreadRunHelper extends BaseThreadRunHelper {
private
void
setThisDate
(
FlowStatusSnapshoot
flowStatusSnapshoot
){
//获取当天的日期
String
thisDateStr
=
DateUtil
.
dateFormat
(
new
Date
(),
"yyyy
MM
dd"
);
String
thisDateStr
=
DateUtil
.
dateFormat
(
new
Date
(),
"yyyy
-MM-
dd"
);
String
thisHourStr
=
DateUtil
.
dateFormat
(
new
Date
(),
"HH"
);
flowStatusSnapshoot
.
setDay
(
thisDateStr
);
flowStatusSnapshoot
.
setHour
(
thisHourStr
);
...
...
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