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
5c4720de
Commit
5c4720de
authored
Sep 14, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档问题处理
parent
357f6ceb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
TreeDto.java
...a/com/yeejoin/amos/boot/module/jxiop/api/dto/TreeDto.java
+5
-0
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+2
-1
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+7
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/TreeDto.java
View file @
5c4720de
...
...
@@ -34,6 +34,11 @@ public class TreeDto {
private
Integer
isOnClick
;
/**
* 风机首页-配置页面场景ID
*/
private
String
sceneId
;
/**
* 子节点
*/
private
List
<
TreeDto
>
children
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
5c4720de
...
...
@@ -160,7 +160,8 @@
sequence_nbr as code,
station_type as parentCode,
sequence_nbr as id,
'1' as isOnclick
'1' as isOnclick,
scene_id as sceneId
from station_basic
<where>
<if
test=
"regionCode != null and regionCode != ''"
>
...
...
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 @
5c4720de
...
...
@@ -222,6 +222,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
treeDto
.
setId
(
String
.
valueOf
(
region
.
getSequenceNbr
()));
treeDto
.
setParentCode
(
"0"
);
treeDto
.
setIsOnClick
(
0
);
treeDto
.
setSceneId
(
"987654321"
);
List
<
TreeDto
>
stationListByRegionCode
=
stationBasicMapper
.
getStationListByRegionCode
(
String
.
valueOf
(
region
.
getRegionCode
()));
...
...
@@ -230,6 +231,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
fdzTreeDto
.
setCode
(
"FDZ"
);
fdzTreeDto
.
setParentCode
(
String
.
valueOf
(
region
.
getRegionCode
()));
fdzTreeDto
.
setIsOnClick
(
0
);
fdzTreeDto
.
setSceneId
(
"12345678910"
);
List
<
TreeDto
>
fdz
=
stationListByRegionCode
.
stream
().
filter
(
t
->
t
.
getParentCode
().
contains
(
"FDZ"
)
&&
t
.
getParentCode
().
length
()
<
4
).
collect
(
Collectors
.
toList
());
fdzTreeDto
.
setChildren
(
fdz
);
...
...
@@ -238,6 +240,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
gfzTreeDto
.
setCode
(
"GFZ"
);
gfzTreeDto
.
setParentCode
(
String
.
valueOf
(
region
.
getRegionCode
()));
gfzTreeDto
.
setIsOnClick
(
0
);
gfzTreeDto
.
setSceneId
(
"1234567891011"
);
List
<
TreeDto
>
gfz
=
stationListByRegionCode
.
stream
().
filter
(
t
->
t
.
getParentCode
().
contains
(
"GFDZ"
)).
collect
(
Collectors
.
toList
());
gfzTreeDto
.
setChildren
(
gfz
);
List
<
TreeDto
>
treeDtos
=
Arrays
.
asList
(
fdzTreeDto
,
gfzTreeDto
);
...
...
@@ -1226,7 +1229,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
queryCondition
.
put
(
CommonConstans
.
QueryStringSystemTypeKeyword
,
Arrays
.
asList
(
"模拟量"
));
List
<
ESEquipments
>
esEquipmentsList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondition
,
null
,
ESEquipments
.
class
);
// 10kVⅡ段母线数据
List
<
ESEquipments
>
xianData
=
esEquipmentsList
.
stream
().
filter
(
esEquipments
->
esEquipments
.
getFrontModule
().
equal
s
(
"35kVⅠ母PT"
)).
collect
(
Collectors
.
toList
());
List
<
ESEquipments
>
xianData
=
esEquipmentsList
.
stream
().
filter
(
esEquipments
->
esEquipments
.
getFrontModule
().
contain
s
(
"35kVⅠ母PT"
)).
collect
(
Collectors
.
toList
());
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
xianData
.
forEach
(
item
->
resultMap
.
put
(
item
.
getDisplayName
(),
keepTwoDecimalPlaces
(
item
.
getValueDouble
().
toString
())));
...
...
@@ -1251,6 +1254,9 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
List
<
Map
<
String
,
String
>>
boosterStationInfo
=
monitorFanIndicatorregionMapper
.
getMajorBoosterStationInfo
(
gatewayId
,
"ASC"
,
5
);
ArrayList
<
Map
<
String
,
String
>>
resultList
=
new
ArrayList
<>();
for
(
Map
<
String
,
String
>
map
:
boosterStationInfo
)
{
if
(
map
.
get
(
"boosterName"
).
equals
(
"35kVⅠ母PT"
))
{
continue
;
}
List
<
ESEquipments
>
listData
=
esEquipmentsList
.
stream
().
filter
(
esEquipments
->
esEquipments
.
getFrontModule
().
contains
(
map
.
get
(
"boosterName"
))
&&
xyxDisplayNameList
.
contains
(
esEquipments
.
getDisplayName
())).
collect
(
Collectors
.
toList
());
HashMap
<
String
,
String
>
stringStringHashMap
=
new
HashMap
<>();
stringStringHashMap
.
put
(
"value1"
,
"0.0"
);
...
...
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