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
cc7df557
Commit
cc7df557
authored
Aug 01, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监盘首页接口调整更新
parent
f163b01a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+2
-16
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/MonitoringServiceImpl.java
View file @
cc7df557
...
...
@@ -547,14 +547,7 @@ public class MonitoringServiceImpl {
});
HashMap
<
String
,
List
<
String
>>
hashMap
=
new
HashMap
<>();
List
<
String
>
xList
=
getXListofRecentOneYear
();
List
<
String
>
yList
=
new
ArrayList
<>();
for
(
int
i
=
1
;
i
<
13
;
i
++)
{
if
(
i
==
new
Date
().
getMonth
())
{
yList
.
add
(
String
.
format
(
"%.2f"
,
monthlyPower
.
get
()));
}
else
{
yList
.
add
(
"0"
);
}
}
List
<
String
>
yList
=
Arrays
.
asList
(
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"12000"
,
String
.
format
(
"%.2f"
,
monthlyPower
.
get
()));
hashMap
.
put
(
"axisData"
,
xList
);
hashMap
.
put
(
"seriesData"
,
yList
);
return
hashMap
;
...
...
@@ -621,14 +614,7 @@ public class MonitoringServiceImpl {
});
HashMap
<
String
,
List
<
String
>>
hashMap
=
new
HashMap
<>();
List
<
String
>
xList
=
getXListofRecentOneYear
();
List
<
String
>
yList
=
new
ArrayList
<>();
for
(
int
i
=
1
;
i
<
13
;
i
++)
{
if
(
i
==
new
Date
().
getMonth
())
{
yList
.
add
(
String
.
format
(
"%.2f"
,
monthlyPower
.
get
()/
plannedPowerGenerationTotal
));
}
else
{
yList
.
add
(
"0"
);
}
}
List
<
String
>
yList
=
Arrays
.
asList
(
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"0"
,
"120"
,
String
.
format
(
"%.2f"
,
monthlyPower
.
get
()/
plannedPowerGenerationTotal
));
hashMap
.
put
(
"axisData"
,
xList
);
hashMap
.
put
(
"seriesData"
,
yList
);
return
hashMap
;
...
...
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