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
c44d440a
Commit
c44d440a
authored
Oct 10, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监盘首页-有功功率显示错误、夏造风电运行列表乱序
parent
61f08acd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+10
-8
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+2
-6
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 @
c44d440a
...
@@ -974,6 +974,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -974,6 +974,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"风向角"
,
"有功功率"
,
"瞬时风速"
,
"日发电量"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"风向角"
,
"有功功率"
,
"瞬时风速"
,
"日发电量"
));
List
<
ESEquipments
>
allList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
List
<
ESEquipments
>
allList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
List
<
ESEquipments
>
windSqlList
=
new
ArrayList
<>();
List
<
ESEquipments
>
windSqlList
=
new
ArrayList
<>();
List
<
ESEquipments
>
windSqlSortList
=
new
ArrayList
<>();
List
<
ESEquipments
>
powerSqlList
=
new
ArrayList
<>();
List
<
ESEquipments
>
powerSqlList
=
new
ArrayList
<>();
List
<
ESEquipments
>
windSpeedSqlList
=
new
ArrayList
<>();
List
<
ESEquipments
>
windSpeedSqlList
=
new
ArrayList
<>();
List
<
ESEquipments
>
electricitySqlList
=
new
ArrayList
<>();
List
<
ESEquipments
>
electricitySqlList
=
new
ArrayList
<>();
...
@@ -996,18 +997,19 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -996,18 +997,19 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
});
});
Map
<
String
,
String
>
powerSqlMap
=
powerSqlList
.
stream
().
collect
(
Collectors
.
toMap
(
ESEquipments:
:
getEquipmentNumber
,
ESEquipments:
:
getValue
));
Map
<
String
,
String
>
powerSqlMap
=
powerSqlList
.
stream
().
collect
(
Collectors
.
toMap
(
ESEquipments:
:
getEquipmentNumber
,
ESEquipments:
:
getValue
));
Map
<
String
,
String
>
windSpeedSqlMap
=
windSpeedSqlList
.
stream
().
collect
(
Collectors
.
toMap
(
ESEquipments:
:
getEquipmentNumber
,
ESEquipments:
:
getValue
));
Map
<
String
,
String
>
windSpeedSqlMap
=
windSpeedSqlList
.
stream
().
collect
(
Collectors
.
toMap
(
ESEquipments:
:
getEquipmentNumber
,
ESEquipments:
:
getValue
));
windSqlSortList
=
windSqlList
.
stream
().
sorted
(
Comparator
.
comparing
(
ESEquipments:
:
getEquipmentNumber
,
Comparator
.
comparing
(
Integer:
:
parseInt
))).
collect
(
Collectors
.
toList
());
Map
<
String
,
String
>
electricitySqlMap
=
electricitySqlList
.
stream
().
collect
(
Collectors
.
toMap
(
ESEquipments:
:
getEquipmentNumber
,
ESEquipments:
:
getValue
));
Map
<
String
,
String
>
electricitySqlMap
=
electricitySqlList
.
stream
().
collect
(
Collectors
.
toMap
(
ESEquipments:
:
getEquipmentNumber
,
ESEquipments:
:
getValue
));
ArrayList
<
Map
<
String
,
String
>>
resultList
=
new
ArrayList
<>();
ArrayList
<
Map
<
String
,
String
>>
resultList
=
new
ArrayList
<>();
windSqlList
.
forEach
(
item
->
{
for
(
int
i
=
0
;
i
<
windSqlSortList
.
size
();
i
++)
{
ESEquipments
esEquipments
=
windSqlSortList
.
get
(
i
);
HashMap
<
String
,
String
>
stringStringHashMap
=
new
HashMap
<>();
HashMap
<
String
,
String
>
stringStringHashMap
=
new
HashMap
<>();
stringStringHashMap
.
put
(
"equipmentNumber"
,
item
.
getEquipmentNumber
());
stringStringHashMap
.
put
(
"equipmentNumber"
,
esEquipments
.
getEquipmentNumber
());
stringStringHashMap
.
put
(
"wind"
,
ObjectUtils
.
isEmpty
(
item
.
getValue
())
?
"0.0"
:
item
.
getValue
());
stringStringHashMap
.
put
(
"wind"
,
ObjectUtils
.
isEmpty
(
esEquipments
.
getValue
())
?
"0.0"
:
esEquipments
.
getValue
());
stringStringHashMap
.
put
(
"power"
,
powerSqlMap
.
get
(
item
.
getEquipmentNumber
()));
stringStringHashMap
.
put
(
"power"
,
powerSqlMap
.
get
(
esEquipments
.
getEquipmentNumber
()));
stringStringHashMap
.
put
(
"windSpeed"
,
windSpeedSqlMap
.
get
(
item
.
getEquipmentNumber
()));
stringStringHashMap
.
put
(
"windSpeed"
,
windSpeedSqlMap
.
get
(
esEquipments
.
getEquipmentNumber
()));
stringStringHashMap
.
put
(
"electricity"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
ObjectUtils
.
isEmpty
(
electricitySqlMap
.
get
(
item
.
getEquipmentNumber
()))
?
0.0000
:
Double
.
valueOf
(
electricitySqlMap
.
get
(
item
.
getEquipmentNumber
()))));
stringStringHashMap
.
put
(
"electricity"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
ObjectUtils
.
isEmpty
(
electricitySqlMap
.
get
(
esEquipments
.
getEquipmentNumber
()))
?
0.0000
:
Double
.
valueOf
(
electricitySqlMap
.
get
(
esEquipments
.
getEquipmentNumber
()))));
resultList
.
add
(
stringStringHashMap
);
resultList
.
add
(
stringStringHashMap
);
}
);
}
//构建平台数据
//构建平台数据
DataGridMock
DataGridMock
=
new
DataGridMock
(
current
,
resultList
.
size
(),
false
,
current
,
resultList
);
DataGridMock
DataGridMock
=
new
DataGridMock
(
current
,
resultList
.
size
(),
false
,
current
,
resultList
);
ColModel
colModelEquipmentNumber
=
new
ColModel
(
"equipmentNumber"
,
"equipmentNumber"
,
"风机编码"
,
"风机编码"
,
"dataGrid"
,
"equipmentNumber"
);
ColModel
colModelEquipmentNumber
=
new
ColModel
(
"equipmentNumber"
,
"equipmentNumber"
,
"风机编码"
,
"风机编码"
,
"dataGrid"
,
"equipmentNumber"
);
...
...
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 @
c44d440a
...
@@ -1314,15 +1314,11 @@ public class MonitoringServiceImpl {
...
@@ -1314,15 +1314,11 @@ public class MonitoringServiceImpl {
queryCondtion1
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getBoosterGatewayId
()));
queryCondtion1
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getBoosterGatewayId
()));
queryCondtion1
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"南瑞光差保护_313P"
));
queryCondtion1
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"南瑞光差保护_313P"
));
List
<
ESEquipments
>
esEquipmentsList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion1
,
null
,
ESEquipments
.
class
);
List
<
ESEquipments
>
esEquipmentsList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion1
,
null
,
ESEquipments
.
class
);
total
.
updateAndGet
(
v
->
v
+
commonServiceImpl
.
getSumByEquipmentIndxName
(
esEquipmentsList
,
"南瑞光差保护_313P"
));
total
.
updateAndGet
(
v
->
v
+
commonServiceImpl
.
getSumByEquipmentIndxName
(
esEquipmentsList
,
"南瑞光差保护_313P"
)
*
CommonConstans
.
kwToMv
);
}
}
});
});
//有功功率换算
//有功功率换算
hashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
total
.
get
()
/
1000
));
hashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
total
.
get
()));
return
hashMap
;
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