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
b4c4ad94
Commit
b4c4ad94
authored
Apr 07, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改稳压泵状态趋势
parent
023df4f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
EmergencyServiceImpl.java
...eejoin/equipmanage/service/impl/EmergencyServiceImpl.java
+13
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EmergencyServiceImpl.java
View file @
b4c4ad94
...
...
@@ -422,11 +422,12 @@ public class EmergencyServiceImpl implements IEmergencyService {
Object
iotCode
=
x
.
get
(
"iotCode"
);
if
(
x
.
get
(
"iotCode"
)
!=
null
)
{
List
<
Map
<
String
,
String
>>
dataList
=
dataListMap
.
get
(
iotCode
.
toString
());
String
flag
=
null
;
if
(!
CollectionUtils
.
isEmpty
(
dataList
))
{
Collections
.
reverse
(
dataList
);
Map
<
String
,
List
<
Map
<
String
,
String
>>>
dataMap
=
dataList
.
stream
().
filter
(
y
->
y
.
containsKey
(
PressurePumpRelateEnum
.
CREATED_TIME
.
getValue
())).
collect
(
Collectors
.
groupingBy
(
e
->
e
.
get
(
"createdTime"
).
substring
(
5
,
16
)));
List
<
Map
<
String
,
String
>>
yDataList
=
null
;
String
flag
=
null
;
for
(
String
t
:
timeList
)
{
List
<
Map
<
String
,
String
>>
data
=
dataMap
.
get
(
t
);
if
(!
CollectionUtils
.
isEmpty
(
data
))
{
...
...
@@ -438,7 +439,17 @@ public class EmergencyServiceImpl implements IEmergencyService {
}
}
}
else
{
timeList
.
forEach
(
t
->
yList
.
add
(
Integer
.
parseInt
(
PressurePumpRelateEnum
.
STOP
.
getValue
())));
// timeList.forEach(t -> yList.add(Integer.parseInt(PressurePumpRelateEnum.STOP.getValue())));
String
prefix
=
iotCode
.
toString
().
substring
(
0
,
8
);
String
suffix
=
iotCode
.
toString
().
substring
(
8
);
List
<
Map
<
String
,
String
>>
iotDataList
=
pressurePumpService
.
getIotTopSingleField
(
"1"
,
prefix
,
suffix
,
PressurePumpRelateEnum
.
IOT_INDEX_VALUE_TRUE
.
getValue
(),
pressurePumpStart
);
if
(!
CollectionUtils
.
isEmpty
(
iotDataList
))
{
flag
=
iotDataList
.
get
(
0
).
get
(
pressurePumpStart
);
}
String
finalFlag
=
flag
;
timeList
.
forEach
(
t
->
yList
.
add
(
StringUtils
.
isNotBlank
(
finalFlag
)
&&
PressurePumpRelateEnum
.
IOT_INDEX_VALUE_TRUE
.
getValue
().
equalsIgnoreCase
(
finalFlag
)
?
Integer
.
parseInt
(
PressurePumpRelateEnum
.
START
.
getValue
())
:
Integer
.
parseInt
(
PressurePumpRelateEnum
.
STOP
.
getValue
())));
}
yMap
.
put
(
"data"
,
yList
);
yData
.
add
(
yMap
);
...
...
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