Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
9296bc09
Commit
9296bc09
authored
Sep 15, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档问题处理
parent
fabdd69a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+5
-2
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+10
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
9296bc09
...
...
@@ -286,9 +286,11 @@ public class MonitorFanIdxController extends BaseController {
public
ResponseModel
<
Map
<
String
,
Object
>>
getOverviewWindSpeed
(
@RequestParam
(
value
=
"stationId"
,
required
=
false
)
String
stationId
,
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
,
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
)
{
String
gatewayId
=
""
;
List
<
StationCacheInfoDto
>
listStationCacheInfoDto
=
commonServiceImpl
.
getListStationCacheInfoDto
();
double
installedCapacity
=
listStationCacheInfoDto
.
stream
().
mapToDouble
(
t
->
Double
.
parseDouble
(
t
.
getInstalledCapacity
())).
sum
();
if
(
null
!=
areaCode
){
List
<
StationCacheInfoDto
>
listStationCacheInfoDto
=
commonServiceImpl
.
getListStationCacheInfoDto
();
List
<
String
>
collect
=
listStationCacheInfoDto
.
stream
().
filter
(
e
->
e
.
getAreaCode
().
equals
(
areaCode
)).
map
(
StationCacheInfoDto:
:
getFanGatewayId
).
collect
(
Collectors
.
toList
());
installedCapacity
=
listStationCacheInfoDto
.
stream
().
filter
(
e
->
e
.
getAreaCode
().
equals
(
areaCode
)).
mapToDouble
(
t
->
Double
.
parseDouble
(
t
.
getInstalledCapacity
())).
sum
();
gatewayId
=
String
.
join
(
","
,
collect
);
}
if
(
null
!=
stationId
){
...
...
@@ -297,8 +299,9 @@ public class MonitorFanIdxController extends BaseController {
if
(
null
==
type
){
gatewayId
=
stationBasic
.
getFanGatewayId
();
}
installedCapacity
=
listStationCacheInfoDto
.
stream
().
filter
(
e
->
e
.
getStationId
().
equals
(
stationId
)).
mapToDouble
(
t
->
Double
.
parseDouble
(
t
.
getInstalledCapacity
())).
sum
();
}
Map
<
String
,
Object
>
detailsWindSpeed
=
monitorFanIndicator
.
getDetailsWindSpeedAll
(
gatewayId
);
Map
<
String
,
Object
>
detailsWindSpeed
=
monitorFanIndicator
.
getDetailsWindSpeedAll
(
gatewayId
,
installedCapacity
);
return
ResponseHelper
.
buildResponse
(
detailsWindSpeed
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
9296bc09
...
...
@@ -609,7 +609,15 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
}
public
Map
<
String
,
Object
>
getDetailsWindSpeedAll
(
String
gatewayId
){
public
Map
<
String
,
Object
>
getDetailsWindSpeedAll
(
String
gatewayId
,
double
installedCapacity
){
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
if
(
StringUtils
.
isNotEmpty
(
gatewayId
))
{
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
}
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"220kV夏雩线212线路测控装置PCS-9705TA有功功率一次值"
,
"南瑞光差保护_313P"
));
List
<
ESEquipments
>
indicatorsDtoList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
double
sum
=
indicatorsDtoList
.
stream
().
mapToDouble
(
t
->
Double
.
parseDouble
(
t
.
getValueDouble
().
toString
())).
sum
();
Double
format
=
Double
.
parseDouble
(
String
.
format
(
"%.2f"
,
sum
/
installedCapacity
));
List
<
Map
<
String
,
Object
>>
list
=
temporaryDataMapper
.
timingTemporarysSorageData
(
gatewayId
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
List
<
String
>
values
=
new
ArrayList
<>();
...
...
@@ -661,6 +669,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
map
.
put
(
"min"
,
min
);
map
.
put
(
"maxTime"
,
maxTime
);
map
.
put
(
"minTime"
,
minTime
);
map
.
put
(
"load"
,
format
);
return
map
;
}
...
...
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