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
2c68c6a6
Commit
2c68c6a6
authored
Feb 22, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单个稳压泵指标展示和状态修改
parent
516cb67e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
SupervisionVideoServiceImpl.java
...equipmanage/service/impl/SupervisionVideoServiceImpl.java
+6
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/SupervisionVideoServiceImpl.java
View file @
2c68c6a6
...
@@ -136,7 +136,7 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
...
@@ -136,7 +136,7 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
if
(!
ObjectUtils
.
isEmpty
(
stateMap
))
{
if
(!
ObjectUtils
.
isEmpty
(
stateMap
))
{
try
{
try
{
//如果当前指标为启动,并且指标值为true,计算启动时长
//如果当前指标为启动,并且指标值为true,计算启动时长
if
(
PressurePumpRelateEnum
.
START
.
getDesc
().
contains
(
stateMap
.
get
(
"equipment_index_name"
))
&&
PressurePumpRelateEnum
.
IOT_INDEX_VALUE_
FALSE
.
getValue
().
contains
(
stateMap
.
get
(
"equipment_index_nam
e"
))){
if
(
PressurePumpRelateEnum
.
START
.
getDesc
().
contains
(
stateMap
.
get
(
"equipment_index_name"
))
&&
PressurePumpRelateEnum
.
IOT_INDEX_VALUE_
TRUE
.
getValue
().
contains
(
stateMap
.
get
(
"valu
e"
))){
update_date
=
sdf
.
parse
(
stateMap
.
get
(
"update_date"
)).
getTime
();
update_date
=
sdf
.
parse
(
stateMap
.
get
(
"update_date"
)).
getTime
();
long
res
=
nowDateTime
-
update_date
;
long
res
=
nowDateTime
-
update_date
;
long
diffMinute
=
res
/
1000
/
60
;
long
diffMinute
=
res
/
1000
/
60
;
...
@@ -144,7 +144,11 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
...
@@ -144,7 +144,11 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
time
=
false
;
time
=
false
;
}
}
}
}
item
.
put
(
"equipment_index_name"
,
stateMap
.
get
(
"equipment_index_name"
));
if
(
PressurePumpRelateEnum
.
START
.
getDesc
().
contains
(
stateMap
.
get
(
"equipment_index_name"
))
&&
PressurePumpRelateEnum
.
IOT_INDEX_VALUE_FALSE
.
getValue
().
contains
(
stateMap
.
get
(
"value"
))){
item
.
put
(
"equipment_index_name"
,
PressurePumpRelateEnum
.
STOP
.
getDesc
());
}
else
{
item
.
put
(
"equipment_index_name"
,
stateMap
.
get
(
"equipment_index_name"
));
}
item
.
put
(
"update_time"
,
stateMap
.
get
(
"update_date"
));
item
.
put
(
"update_time"
,
stateMap
.
get
(
"update_date"
));
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
throw
new
BadRequest
(
"稳压泵最新指标时间转换失败!"
);
throw
new
BadRequest
(
"稳压泵最新指标时间转换失败!"
);
...
...
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