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
9deadd05
Commit
9deadd05
authored
Sep 15, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档问题处理
parent
a6c34b91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+13
-13
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 @
9deadd05
...
@@ -361,10 +361,10 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -361,10 +361,10 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
StationBasic
stationBasic
=
getOneByStationNumber
(
stationId
);
StationBasic
stationBasic
=
getOneByStationNumber
(
stationId
);
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getFanGatewayId
()));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getFanGatewayId
()));
queryCondtion
.
put
(
"equipmentNumber"
,
Arrays
.
asList
(
equipNum
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentNumberKeyword
,
Arrays
.
asList
(
equipNum
));
Map
<
String
,
String
>
shouldQueryCondtion
=
new
HashMap
<>();
Map
<
String
,
String
>
likeMap
=
new
HashMap
<>();
shouldQueryCondtion
.
put
(
"frontModule"
,
frontModule
);
likeMap
.
put
(
CommonConstans
.
QueryStringFrontMoudleNotKeyWord
,
frontModule
);
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
shouldQueryCondtion
,
ESEquipments
.
class
);
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
AndLike
(
queryCondtion
,
null
,
ESEquipments
.
class
,
likeMap
);
List
<
String
>
xList
=
new
ArrayList
<>();
List
<
String
>
xList
=
new
ArrayList
<>();
List
<
String
>
yList
=
new
ArrayList
<>();
List
<
String
>
yList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
result
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
result
.
size
();
i
++)
{
...
@@ -390,15 +390,15 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -390,15 +390,15 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public
String
getFanDataByType
(
String
stationId
,
String
equipNum
,
String
frontModule
,
String
typeName
)
{
public
String
getFanDataByType
(
String
stationId
,
String
equipNum
,
String
frontModule
,
String
typeName
)
{
StationBasic
stationBasic
=
getOneByStationNumber
(
stationId
);
StationBasic
stationBasic
=
getOneByStationNumber
(
stationId
);
Map
<
String
,
String
>
queryCondtion
=
new
HashMap
<>();
Map
<
String
,
String
>
likeMap
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringFrontMoudle
,
frontModule
);
likeMap
.
put
(
CommonConstans
.
QueryStringFrontMoudleNotKeyWord
,
frontModule
);
Map
<
String
,
List
<
String
>>
queryCondtion
1
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
1
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
typeName
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
typeName
));
queryCondtion
1
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getFanGatewayId
()));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getFanGatewayId
()));
queryCondtion
1
.
put
(
CommonConstans
.
QueryStringEquipmentNumber
,
Arrays
.
asList
(
equipNum
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentNumberKeyword
,
Arrays
.
asList
(
equipNum
));
List
<
ESEquipments
>
equipNumList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion1
,
queryCondtion
,
ESEquipments
.
class
);
List
<
ESEquipments
>
equipNumList
=
commonServiceImpl
.
getListDataByCondtions
AndLike
(
queryCondtion
,
null
,
ESEquipments
.
class
,
likeMap
);
if
(
CollectionUtils
.
isNotEmpty
(
equipNumList
)
&&
StringUtils
.
isNotEmpty
(
equipNumList
.
get
(
0
).
getValue
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
equipNumList
)
&&
StringUtils
.
isNotEmpty
(
equipNumList
.
get
(
0
).
getValue
Double
().
toString
()))
{
return
equipNumList
.
get
(
0
).
getValue
();
return
equipNumList
.
get
(
0
).
getValue
Double
().
toString
();
}
else
{
}
else
{
return
"0"
;
return
"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