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
e4521a85
Commit
e4521a85
authored
Jun 28, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
27236 【智慧能源一体化】大屏监控运维数据接口返回添加Key字段
parent
8fda3abf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
MonitorServiceImpl.java
...oot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
+1
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
View file @
e4521a85
...
@@ -74,6 +74,7 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -74,6 +74,7 @@ public class MonitorServiceImpl implements MonitorService {
for
(
StationType
value
:
StationType
.
values
())
{
for
(
StationType
value
:
StationType
.
values
())
{
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
List
<
StationCacheInfoDto
>
dtos
=
listMap
.
get
(
value
.
getCode
());
List
<
StationCacheInfoDto
>
dtos
=
listMap
.
get
(
value
.
getCode
());
map
.
put
(
"key"
,
value
.
getCode
());
map
.
put
(
"data"
,
dtos
==
null
?
0
:
dtos
.
size
());
map
.
put
(
"data"
,
dtos
==
null
?
0
:
dtos
.
size
());
map
.
put
(
"title"
,
dtos
==
null
?
0
:
dtos
.
stream
().
filter
(
obj
->
!
ObjectUtils
.
isEmpty
(
obj
.
getInstalledCapacity
())).
mapToDouble
(
l
->
Double
.
parseDouble
(
l
.
getInstalledCapacity
())).
sum
());
map
.
put
(
"title"
,
dtos
==
null
?
0
:
dtos
.
stream
().
filter
(
obj
->
!
ObjectUtils
.
isEmpty
(
obj
.
getInstalledCapacity
())).
mapToDouble
(
l
->
Double
.
parseDouble
(
l
.
getInstalledCapacity
())).
sum
());
map
.
put
(
"title"
,
keepTwodecimalPlaces
(
Double
.
valueOf
(
map
.
get
(
"title"
).
toString
())));
map
.
put
(
"title"
,
keepTwodecimalPlaces
(
Double
.
valueOf
(
map
.
get
(
"title"
).
toString
())));
...
...
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