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
ccf0f4f7
Commit
ccf0f4f7
authored
Oct 19, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
e64b2c96
4f3961d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+8
-3
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 @
ccf0f4f7
...
@@ -336,6 +336,10 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -336,6 +336,10 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public
List
<
ESEquipmentsDTO
>
getFanStatusList
(
String
stationId
)
{
public
List
<
ESEquipmentsDTO
>
getFanStatusList
(
String
stationId
)
{
StationBasic
stationBasic
=
getOneByStationNumber
(
stationId
);
StationBasic
stationBasic
=
getOneByStationNumber
(
stationId
);
if
(
stationBasic
.
getStationName
().
contains
(
"GFDZ"
))
{
return
new
ArrayList
<
ESEquipmentsDTO
>();
}
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"风机状态"
,
"有功功率"
,
"发电状态"
,
"报警状态"
,
"停机状态"
,
"故障状态"
,
"待机状态"
,
"维护状态"
,
"发电机转速"
,
"正常发电状态"
));
Arrays
.
asList
(
"风机状态"
,
"有功功率"
,
"发电状态"
,
"报警状态"
,
"停机状态"
,
"故障状态"
,
"待机状态"
,
"维护状态"
,
"发电机转速"
,
"正常发电状态"
));
...
@@ -401,7 +405,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -401,7 +405,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
equipMap
.
put
(
entry
.
getKey
(),
"正常运行"
);
equipMap
.
put
(
entry
.
getKey
(),
"正常运行"
);
}
else
if
(
Boolean
.
TRUE
.
toString
().
equalsIgnoreCase
(
warnStatus
))
}
else
if
(
Boolean
.
TRUE
.
toString
().
equalsIgnoreCase
(
warnStatus
))
{
{
equipMap
.
put
(
entry
.
getKey
(),
"报警
状态
"
);
equipMap
.
put
(
entry
.
getKey
(),
"报警
运行
"
);
}
}
else
if
(
"9.0"
.
equals
(
fault22
))
else
if
(
"9.0"
.
equals
(
fault22
))
{
{
...
@@ -426,7 +430,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -426,7 +430,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
HashMap
<
String
,
String
>
colorMap
=
new
HashMap
<>();
HashMap
<
String
,
String
>
colorMap
=
new
HashMap
<>();
colorMap
.
put
(
"正常运行"
,
"#00aa00"
);
colorMap
.
put
(
"正常运行"
,
"#00aa00"
);
colorMap
.
put
(
"报警
状态
"
,
"#ffc400"
);
colorMap
.
put
(
"报警
运行
"
,
"#ffc400"
);
colorMap
.
put
(
"停机状态"
,
"#a3f5aa"
);
colorMap
.
put
(
"停机状态"
,
"#a3f5aa"
);
colorMap
.
put
(
"故障状态"
,
"#ff0000"
);
colorMap
.
put
(
"故障状态"
,
"#ff0000"
);
colorMap
.
put
(
"限功率"
,
"#0055ff"
);
colorMap
.
put
(
"限功率"
,
"#0055ff"
);
...
@@ -633,7 +637,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -633,7 +637,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
activePowerList
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtime
(
CommonConstans
.
taiheActivePowerPoint
,
stationBasic
.
getBoosterGatewayId
());
activePowerList
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtime
(
CommonConstans
.
taiheActivePowerPoint
,
stationBasic
.
getBoosterGatewayId
());
otherList
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtime
(
CommonConstans
.
taiheIrradiationPonit
,
stationBasic
.
getBoosterGatewayId
());
otherList
=
indicatorDataMapper
.
selectDataByequipmentIndexNameAndtime
(
CommonConstans
.
taiheIrradiationPonit
,
stationBasic
.
getBoosterGatewayId
());
}
}
for
(
int
i
=
0
;
i
<
activePowerList
.
size
();
i
++)
{
Integer
size
=
activePowerList
.
size
()
>
otherList
.
size
()
?
otherList
.
size
()
:
activePowerList
.
size
();
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
IndicatorData
indicatorData
=
activePowerList
.
get
(
i
);
IndicatorData
indicatorData
=
activePowerList
.
get
(
i
);
time
.
add
(
DateUtil
.
format
(
indicatorData
.
getCreatedTime
(),
"HH:mm"
));
time
.
add
(
DateUtil
.
format
(
indicatorData
.
getCreatedTime
(),
"HH:mm"
));
if
(
"FDZ"
.
equals
(
stationBasic
.
getStationType
()))
{
if
(
"FDZ"
.
equals
(
stationBasic
.
getStationType
()))
{
...
...
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