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
0cdd8d93
Commit
0cdd8d93
authored
Oct 14, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理监控推送null问题
parent
217f26c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+7
-17
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
0cdd8d93
...
@@ -5,22 +5,8 @@ import java.io.IOException;
...
@@ -5,22 +5,8 @@ import java.io.IOException;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
import
java.text.Collator
;
import
java.text.Collator
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Arrays
;
import
java.util.Calendar
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Locale
;
import
java.util.Map
;
import
java.util.Map.Entry
;
import
java.util.Map.Entry
;
import
java.util.Set
;
import
java.util.TreeMap
;
import
java.util.TreeSet
;
import
java.util.function.Function
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -687,8 +673,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -687,8 +673,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
time
.
add
(
DateUtil
.
format
(
indicatorData
.
getCreatedTime
(),
"HH:mm"
));
time
.
add
(
DateUtil
.
format
(
indicatorData
.
getCreatedTime
(),
"HH:mm"
));
if
(
"FDZ"
.
equals
(
stationBasic
.
getStationType
()))
{
if
(
"FDZ"
.
equals
(
stationBasic
.
getStationType
()))
{
values
.
add
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
indicatorData
.
getValueF
()));
values
.
add
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
indicatorData
.
getValueF
()));
Double
value
=
groupMap
.
get
(
indicatorData
.
getCreatedTime
());
if
(
Objects
.
isNull
(
value
)){
value
=
0.0
;
}
valueList
.
add
(
valueList
.
add
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
groupMap
.
get
(
indicatorData
.
getCreatedTime
())
));
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
value
));
}
else
{
}
else
{
values
.
add
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
values
.
add
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
indicatorData
.
getValueF
()
*
CommonConstans
.
kwToMv
));
indicatorData
.
getValueF
()
*
CommonConstans
.
kwToMv
));
...
@@ -743,7 +733,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -743,7 +733,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
JSON
.
toJSON
(
otherInfo
).
toString
().
getBytes
(
"UTF-8"
),
1
,
true
);
JSON
.
toJSON
(
otherInfo
).
toString
().
getBytes
(
"UTF-8"
),
1
,
true
);
log
.
info
(
"---------------------推送全站图表信息结束------------------------------"
);
log
.
info
(
"---------------------推送全站图表信息结束------------------------------"
);
}
catch
(
Exception
exception
)
{
}
catch
(
Exception
exception
)
{
log
.
info
(
"---------------------推送全站图表信息失败------------------------------"
);
log
.
error
(
"---------------------推送全站图表信息失败------------------------------"
);
}
}
}
}
...
...
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