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
c4fc2e03
Commit
c4fc2e03
authored
Feb 11, 2023
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:稳压泵启停状态图接口修改
parent
b6a13f28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
EmergencyServiceImpl.java
...eejoin/equipmanage/service/impl/EmergencyServiceImpl.java
+4
-4
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 @
c4fc2e03
...
...
@@ -219,7 +219,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
@Override
public
Map
<
String
,
Object
>
getPressurePumpStatusChart
(
String
equipmentCode
,
String
startTime
,
String
endTime
,
String
bizOrgCode
,
String
appKey
,
String
product
,
String
token
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
Linked
HashMap
<>();
// 获取稳压泵
List
<
Map
<
String
,
Object
>>
list
=
equipmentSpecificSerivce
.
getListByEquipmentCode
(
equipmentCode
,
bizOrgCode
);
// 获取各稳压泵数据,及时间戳
...
...
@@ -378,7 +378,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
}
}
}
ResponseModel
intervalResponseModel
=
iotFeign
.
topSingleField
(
appKey
,
product
,
token
,
"10"
,
prefix
,
null
,
null
,
pressurePumpStart
);
ResponseModel
intervalResponseModel
=
iotFeign
.
topSingleField
(
appKey
,
product
,
token
,
"10
0
"
,
prefix
,
null
,
null
,
pressurePumpStart
);
String
intervalTime1
=
nowStrLong
;
String
intervalTime2
=
nowStrLong
;
String
durationTime
=
nowStrLong
;
...
...
@@ -423,8 +423,8 @@ public class EmergencyServiceImpl implements IEmergencyService {
}
}
}
intervalMap
.
put
(
"value"
,
Math
.
abs
(
DateUtils
.
getDurationMinutes
(
intervalTime1
,
intervalTime2
,
"yyyy-MM-dd HH:mm:ss"
)
));
durationlMap
.
put
(
"value"
,
Math
.
abs
(
DateUtils
.
getDurationMinutes
(
durationTime
,
nowStrLong
,
"yyyy-MM-dd HH:mm:ss"
)
));
intervalMap
.
put
(
"value"
,
Math
.
ceil
((
double
)
Math
.
abs
(
DateUtils
.
getDurationSecconds
(
intervalTime1
,
intervalTime2
,
"yyyy-MM-dd HH:mm:ss"
))
/
60
));
durationlMap
.
put
(
"value"
,
Math
.
ceil
((
double
)
Math
.
abs
(
DateUtils
.
getDurationSecconds
(
durationTime
,
nowStrLong
,
"yyyy-MM-dd HH:mm:ss"
))
/
60
));
}
else
{
intervalMap
.
put
(
"value"
,
0
);
durationlMap
.
put
(
"value"
,
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