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
ad544458
Commit
ad544458
authored
Aug 06, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分析光伏预警生成数据不对
parent
a4d6eec7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+3
-6
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 @
ad544458
...
@@ -169,9 +169,6 @@ public class HealthStatusIndicatorServiceImpl {
...
@@ -169,9 +169,6 @@ public class HealthStatusIndicatorServiceImpl {
// @Scheduled(cron = "0 0 */1 * * ?")
// @Scheduled(cron = "0 0 */1 * * ?")
@Async
(
"async"
)
@Async
(
"async"
)
public
void
healthWarningMinuteGF
(
Date
time
)
{
public
void
healthWarningMinuteGF
(
Date
time
)
{
if
(!
openHealth
)
{
return
;
}
String
format
=
DateUtil
.
format
(
time
,
"yyyy-MM-dd HH:mm:00"
);
String
format
=
DateUtil
.
format
(
time
,
"yyyy-MM-dd HH:mm:00"
);
// Date date = DateUtils.dateAddHours(time, -8);
// Date date = DateUtils.dateAddHours(time, -8);
log
.
info
(
"光伏---------------------预警时间----"
+
time
);
log
.
info
(
"光伏---------------------预警时间----"
+
time
);
...
@@ -306,9 +303,9 @@ public class HealthStatusIndicatorServiceImpl {
...
@@ -306,9 +303,9 @@ public class HealthStatusIndicatorServiceImpl {
int
flag
=
ObjectUtils
.
isEmpty
(
idxBizPvWarningRecords
)
||
WarningNameEnum
int
flag
=
ObjectUtils
.
isEmpty
(
idxBizPvWarningRecords
)
||
WarningNameEnum
.
getCode
(
level
)
>
WarningNameEnum
.
getCode
(
idxBizPvWarningRecords
.
get
(
0
).
getWarningName
())
?
0
.
getCode
(
level
)
>
WarningNameEnum
.
getCode
(
idxBizPvWarningRecords
.
get
(
0
).
getWarningName
())
?
0
:
1
;
:
1
;
Boolean
timeFlag
=
format
//
Boolean timeFlag = format
.
equals
(
idxBizPvHealthIndices
.
get
(
idxBizPvHealthIndices
.
size
()
-
1
).
getRecDate
());
//
.equals(idxBizPvHealthIndices.get(idxBizPvHealthIndices.size() - 1).getRecDate());
if
(!
level
.
equals
(
""
)
&&
flag
==
0
&&
timeFlag
)
{
if
(!
level
.
equals
(
""
)
&&
flag
==
0
)
{
IdxBizPvWarningRecord
idxBizPvWarningRecord
=
new
IdxBizPvWarningRecord
();
IdxBizPvWarningRecord
idxBizPvWarningRecord
=
new
IdxBizPvWarningRecord
();
idxBizPvWarningRecord
.
setKks
(
idxBizPvHealthIndices
.
get
(
idxBizPvHealthIndices
.
size
()
-
1
).
getKks
());
idxBizPvWarningRecord
.
setKks
(
idxBizPvHealthIndices
.
get
(
idxBizPvHealthIndices
.
size
()
-
1
).
getKks
());
idxBizPvWarningRecord
idxBizPvWarningRecord
...
...
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