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
b3d8ddb0
Commit
b3d8ddb0
authored
Apr 18, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监盘大屏与运行监盘数据问题错误问题处理。
parent
b01d07e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
MonitorServiceImpl.java
...oot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
+1
-0
MonitorServiceImpl.java
...oot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
+5
-5
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 @
b3d8ddb0
...
...
@@ -79,6 +79,7 @@ public class MonitorServiceImpl implements MonitorService {
List
<
StationCacheInfoDto
>
dtos
=
listMap
.
get
(
value
.
getCode
());
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"
,
keepTwodecimalPlaces
(
Double
.
valueOf
(
map
.
get
(
"title"
).
toString
())));
mapList
.
add
(
map
);
}
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
View file @
b3d8ddb0
...
...
@@ -112,8 +112,8 @@ public class MonitorServiceImpl implements MonitorService {
String
nationalFanUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_province_item_url
+
"&type=fan"
;
//获取光伏
String
nationalPVUrl
=
Constants
.
BASE_URL
+
"?"
+
Constants
.
get_province_item_url
+
"&type=pv"
;
List
<
BuDunGenDto
>
nationalGendto
=
httpRequestUtil
.
getResPonse
(
national
PV
Url
,
Constants
.
REQUEST_GET
,
""
,
Constants
.
resovleRule_data
,
BuDunGenDto
.
class
);
List
<
BuDunGenDto
>
fanGendto
=
httpRequestUtil
.
getResPonse
(
national
PV
Url
,
Constants
.
REQUEST_GET
,
""
,
Constants
.
resovleRule_data
,
BuDunGenDto
.
class
);
List
<
BuDunGenDto
>
nationalGendto
=
httpRequestUtil
.
getResPonse
(
nationalUrl
,
Constants
.
REQUEST_GET
,
""
,
Constants
.
resovleRule_data
,
BuDunGenDto
.
class
);
List
<
BuDunGenDto
>
fanGendto
=
httpRequestUtil
.
getResPonse
(
national
Fan
Url
,
Constants
.
REQUEST_GET
,
""
,
Constants
.
resovleRule_data
,
BuDunGenDto
.
class
);
List
<
BuDunGenDto
>
pvGendto
=
httpRequestUtil
.
getResPonse
(
nationalPVUrl
,
Constants
.
REQUEST_GET
,
""
,
Constants
.
resovleRule_data
,
BuDunGenDto
.
class
);
if
(
nationalGendto
.
size
()
>
0
)
{
BuDunGenDto
buDunGenDto
=
nationalGendto
.
get
(
0
);
...
...
@@ -124,7 +124,7 @@ public class MonitorServiceImpl implements MonitorService {
useHoursOfAnnual
=
buDunGenDto
.
getYear_hour_number
();
}
if
(
fanGendto
.
size
()
>
0
)
{
BuDunGenDto
buDunGenDto
=
national
Gendto
.
get
(
0
);
BuDunGenDto
buDunGenDto
=
fan
Gendto
.
get
(
0
);
powerOfDayFD
=
buDunGenDto
.
getDay
();
powerOfMonthFD
=
buDunGenDto
.
getMonth
();
powerOfAnnualFD
=
buDunGenDto
.
getYear
();
...
...
@@ -132,7 +132,7 @@ public class MonitorServiceImpl implements MonitorService {
useHoursOfAnnualFD
=
buDunGenDto
.
getYear_hour_number
();
}
if
(
pvGendto
.
size
()
>
0
)
{
BuDunGenDto
buDunGenDto
=
national
Gendto
.
get
(
0
);
BuDunGenDto
buDunGenDto
=
pv
Gendto
.
get
(
0
);
powerOfDayGF
=
buDunGenDto
.
getDay
();
powerOfMonthGF
=
buDunGenDto
.
getMonth
();
powerOfAnnualGF
=
buDunGenDto
.
getYear
();
...
...
@@ -194,7 +194,7 @@ public class MonitorServiceImpl implements MonitorService {
stringHashMap11
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnual
));
list2
.
add
(
stringHashMap11
);
HashMap
<
String
,
String
>
stringHashMap12
=
new
HashMap
<>();
stringHashMap12
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
completeRateOfAnnual
*
100
)));
stringHashMap12
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
completeRateOfAnnual
)));
list2
.
add
(
stringHashMap12
);
page2
.
setRecords
(
list2
);
try
{
...
...
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