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
9cc0b1bc
Commit
9cc0b1bc
authored
Sep 14, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公共方法添加
parent
a19c60a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
CommonConstans.java
.../amos/boot/module/jxiop/biz/constants/CommonConstans.java
+1
-0
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+1
-1
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+7
-7
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/constants/CommonConstans.java
View file @
9cc0b1bc
...
...
@@ -91,4 +91,5 @@ public class CommonConstans {
public
static
final
String
QueryStringIsAlarm
=
"isAlarm"
;
public
static
final
String
Twodecimalplaces
=
"%.2f"
;
public
static
final
String
Fourdecimalplaces
=
"%.4f"
;
public
static
final
String
QueryStringFrontMoudleNotKeyWord
=
"frontModule"
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
9cc0b1bc
...
...
@@ -486,7 +486,7 @@ public class CommonServiceImpl {
* @param shouldQuerCondtion
* @param tClass
* @param <T>
* @param likeMap 模糊字段查询
* @param likeMap 模糊字段查询
key:不能带.keyWords
* @return
*/
public
<
T
>
List
<
T
>
getListDataByCondtionsAndLike
(
Map
<
String
,
List
<
String
>>
mustQuerCondtion
,
Map
<
String
,
String
>
shouldQuerCondtion
,
Class
<
T
>
tClass
,
Map
<
String
,
String
>
likeMap
)
{
...
...
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 @
9cc0b1bc
...
...
@@ -786,18 +786,18 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public
void
getStatusJDX
(
String
gatewayId
,
String
stationId
,
String
frontModule
)
{
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
Map
<
String
,
String
>
shouldCodtion
=
new
HashMap
<>();
shouldCodtion
.
put
(
"frontModule"
,
frontModule
);
shouldCodtion
.
put
(
CommonConstans
.
QueryStringDisplayName
,
"合位"
);
List
<
ESEquipments
>
listData
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
shouldCodtion
,
ESEquipments
.
class
);
Map
<
String
,
String
>
likeMap
=
new
HashMap
<>();
likeMap
.
put
(
CommonConstans
.
QueryStringFrontMoudleNotKeyWord
,
frontModule
);
likeMap
.
put
(
CommonConstans
.
QueryStringDisplayName
,
"合位"
);
List
<
ESEquipments
>
listData
=
commonServiceImpl
.
getListDataByCondtions
AndLike
(
queryCondtion
,
null
,
ESEquipments
.
class
,
likeMap
);
List
<
Map
<
String
,
Object
>>
statusMaps
=
new
ArrayList
<>();
Map
<
String
,
List
<
ESEquipments
>>
collect
=
listData
.
stream
().
collect
(
Collectors
.
groupingBy
(
ESEquipments:
:
getFrontModule
,
LinkedHashMap:
:
new
,
Collectors
.
toList
()));
for
(
String
s
:
collect
.
keySet
())
{
Map
<
String
,
Object
>
statusMap
=
new
HashMap
<>();
if
(
frontModule
.
equals
(
"前光"
))
{
shouldCodtion
.
remove
(
CommonConstans
.
QueryStringDisplayName
);
shouldCodtion
.
put
(
CommonConstans
.
QueryStringSystemType
,
"模拟量"
);
List
<
ESEquipments
>
value
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
shouldCodtion
,
ESEquipments
.
class
);
likeMap
.
remove
(
CommonConstans
.
QueryStringDisplayName
);
likeMap
.
put
(
CommonConstans
.
QueryStringSystemType
,
"模拟量"
);
List
<
ESEquipments
>
value
=
commonServiceImpl
.
getListDataByCondtions
AndLike
(
queryCondtion
,
null
,
ESEquipments
.
class
,
likeMap
);
for
(
ESEquipments
indicatorsDto
:
value
)
{
Double
aDouble
=
Double
.
valueOf
(
indicatorsDto
.
getValue
());
statusMap
.
put
(
indicatorsDto
.
getDisplayName
()
+
"Value"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
aDouble
));
...
...
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