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
d8e391d1
Commit
d8e391d1
authored
Aug 07, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
c784e203
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+11
-7
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 @
d8e391d1
...
...
@@ -1792,16 +1792,20 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
String
querySql
=
" SELECT * FROM indicators_"
+
gatewayId
+
" WHERE ( equipmentIndexName ='告警运行' or equipmentIndexName ='限额运行' ) and value != 'true'"
;
List
<
IndicatorsDto
>
queryList
=
influxDButils
.
getListData
(
querySql
,
IndicatorsDto
.
class
);
List
<
String
>
collect
=
queryList
.
stream
().
map
(
IndicatorsDto:
:
getEquipmentNumber
).
collect
(
Collectors
.
toList
());
Set
<
String
>
strings
=
new
HashSet
<>(
collect
);
zcNum
=
collect
.
size
()-
strings
.
size
();
if
(!
ValidationUtil
.
isEmpty
(
queryList
))
{
List
<
String
>
collect
=
queryList
.
stream
().
map
(
IndicatorsDto:
:
getEquipmentNumber
).
collect
(
Collectors
.
toList
());
Set
<
String
>
strings
=
new
HashSet
<>(
collect
);
zcNum
=
collect
.
size
()
-
strings
.
size
();
}
String
querySql1
=
" SELECT * FROM indicators_"
+
gatewayId
+
" equipmentIndexName ='通讯异常' and value = 'true'"
;
List
<
IndicatorsDto
>
queryList1
=
influxDButils
.
getListData
(
querySql1
,
IndicatorsDto
.
class
);
List
<
String
>
collect1
=
queryList
.
stream
().
map
(
IndicatorsDto:
:
getEquipmentNumber
).
collect
(
Collectors
.
toList
());
Set
<
String
>
strings1
=
new
HashSet
<>(
collect
);
txNum
=
collect
.
size
()-
strings
.
size
();
if
(!
ValidationUtil
.
isEmpty
(
queryList1
)){
List
<
String
>
collect1
=
queryList
.
stream
().
map
(
IndicatorsDto:
:
getEquipmentNumber
).
collect
(
Collectors
.
toList
());
Set
<
String
>
strings1
=
new
HashSet
<>(
collect1
);
txNum
=
collect1
.
size
()-
strings1
.
size
();
}
numMap
.
put
(
"djNum"
,
djNum
);
...
...
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