Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
c81583bd
Commit
c81583bd
authored
Jun 05, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复代码
parent
e46ea76c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+9
-9
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HealthStatusIndicatorServiceImpl.java
View file @
c81583bd
...
@@ -1889,19 +1889,19 @@ public class HealthStatusIndicatorServiceImpl {
...
@@ -1889,19 +1889,19 @@ public class HealthStatusIndicatorServiceImpl {
//@Scheduled(cron = "0 0 0/1 * * ?")
//@Scheduled(cron = "0 0 0/1 * * ?")
@Async
(
"async"
)
@Async
(
"async"
)
@PostConstruct
//
@PostConstruct
public
void
healthWarningHour
()
{
public
void
healthWarningHour
()
{
// if (!openHealth) {
// if (!openHealth) {
// return;
// return;
// }
// }
//
Date time = new Date();
Date
time
=
new
Date
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
//
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date
time
=
null
;
//
Date time=null;
try
{
//
try {
time
=
simpleDateFormat
.
parse
(
"2024-06-04 17:00:00"
);
//
time = simpleDateFormat.parse("2024-06-04 17:00:00");
}
catch
(
ParseException
e1
)
{
//
} catch (ParseException e1) {
e1
.
printStackTrace
();
//
e1.printStackTrace();
}
//
}
String
format
=
DateUtil
.
format
(
time
,
"yyyy-MM-dd HH:00:00"
);
String
format
=
DateUtil
.
format
(
time
,
"yyyy-MM-dd HH:00:00"
);
// Date date = DateUtils.dateAddHours(time, -13);
// Date date = DateUtils.dateAddHours(time, -13);
...
...
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