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
39f897c0
Commit
39f897c0
authored
Oct 10, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改es条件错误
parent
d5c9dad1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+7
-4
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 @
39f897c0
...
@@ -2075,7 +2075,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -2075,7 +2075,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
Map
<
String
,
String
>
shouldCondtion
=
new
HashMap
<>();
Map
<
String
,
String
>
shouldCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getFanGatewayId
()));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getFanGatewayId
()));
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"待机"
,
"停机"
,
"告警运行"
,
"限额运行"
,
"降额运行"
,
"故障停机"
,
"通讯故障"
,
"运行"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"待机"
,
"停机"
,
"告警运行"
,
"限额运行"
,
"降额运行"
,
"故障停机"
,
"通讯故障"
,
"运行"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringValue
,
Arrays
.
asList
(
"true"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringValue
Keyword
,
Arrays
.
asList
(
"true"
));
/**
/**
* 逆变器
* 逆变器
...
@@ -2085,7 +2085,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -2085,7 +2085,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
* 汇流箱
* 汇流箱
*/
*/
queryCondtion
.
remove
(
CommonConstans
.
QueryStringEquipmentIndexName
);
queryCondtion
.
remove
(
CommonConstans
.
QueryStringEquipmentIndexName
);
queryCondtion
.
remove
(
CommonConstans
.
QueryStringValue
);
queryCondtion
.
remove
(
CommonConstans
.
QueryStringValue
Keyword
);
queryCondtion
.
put
(
CommonConstans
.
QueryStringDataType
,
Arrays
.
asList
(
"state"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringDataType
,
Arrays
.
asList
(
"state"
));
shouldCondtion
.
put
(
CommonConstans
.
QueryStringFrontMoudle
,
"汇流箱"
);
shouldCondtion
.
put
(
CommonConstans
.
QueryStringFrontMoudle
,
"汇流箱"
);
List
<
ESEquipments
>
indicatorsDtoListHLX
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
shouldCondtion
,
ESEquipments
.
class
);
List
<
ESEquipments
>
indicatorsDtoListHLX
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
shouldCondtion
,
ESEquipments
.
class
);
...
@@ -2096,12 +2096,13 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -2096,12 +2096,13 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
List
<
ESEquipments
>
indicatorsDtoListXB
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
shouldCondtion
,
ESEquipments
.
class
);
List
<
ESEquipments
>
indicatorsDtoListXB
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
shouldCondtion
,
ESEquipments
.
class
);
;
;
indicatorsDtoList
.
addAll
(
indicatorsDtoListHLX
);
//
indicatorsDtoList.addAll(indicatorsDtoListHLX);
indicatorsDtoList
.
addAll
(
indicatorsDtoListXB
);
//
indicatorsDtoList.addAll(indicatorsDtoListXB);
List
<
EquipAlarmEvent
>
newEquipAlarmEvents
=
new
ArrayList
<>();
List
<
EquipAlarmEvent
>
newEquipAlarmEvents
=
new
ArrayList
<>();
List
<
EquipAlarmEvent
>
newEquipAlarmEvent
=
new
ArrayList
<>();
List
<
EquipAlarmEvent
>
newEquipAlarmEvent
=
new
ArrayList
<>();
long
time
=
new
Date
().
getTime
();
long
time
=
new
Date
().
getTime
();
if
(
CollectionUtils
.
isNotEmpty
(
indicatorsDtoList
)){
for
(
ESEquipments
esEquipments
:
indicatorsDtoList
)
{
for
(
ESEquipments
esEquipments
:
indicatorsDtoList
)
{
EquipAlarmEvent
equipAlarmEvent
=
new
EquipAlarmEvent
();
EquipAlarmEvent
equipAlarmEvent
=
new
EquipAlarmEvent
();
equipAlarmEvent
.
setEquipIndex
(
esEquipments
.
getEquipmentNumber
());
equipAlarmEvent
.
setEquipIndex
(
esEquipments
.
getEquipmentNumber
());
...
@@ -2116,6 +2117,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -2116,6 +2117,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
newEquipAlarmEvents
.
add
(
equipAlarmEvent
);
newEquipAlarmEvents
.
add
(
equipAlarmEvent
);
newEquipAlarmEvent
.
add
(
equipAlarmEvent
);
newEquipAlarmEvent
.
add
(
equipAlarmEvent
);
}
}
}
String
lastSort
=
equipAlarmEventMapper
.
getLastDataBySort
(
stationBasic
.
getFanGatewayId
());
String
lastSort
=
equipAlarmEventMapper
.
getLastDataBySort
(
stationBasic
.
getFanGatewayId
());
if
(
null
!=
lastSort
)
{
if
(
null
!=
lastSort
)
{
...
...
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