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
ca4fca05
Commit
ca4fca05
authored
Nov 28, 2022
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12371
parent
35f93cf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+4
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
ca4fca05
...
@@ -330,7 +330,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -330,7 +330,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
long
nowDateTime
=
new
Date
().
getTime
();
//当前时间戳
long
nowDateTime
=
new
Date
().
getTime
();
//当前时间戳
Map
<
String
,
String
>
stateMap
=
fireFightingSystemMapper
.
queryPressureNowStateBySpecificId
((
Long
)
item
.
get
(
"id"
));
Map
<
String
,
String
>
stateMap
=
fireFightingSystemMapper
.
queryPressureNowStateBySpecificId
((
Long
)
item
.
get
(
"id"
));
ids
.
add
((
Long
)
item
.
get
(
"id"
));
ids
.
add
((
Long
)
item
.
get
(
"id"
));
boolean
time
=
fals
e
;
boolean
time
=
tru
e
;
if
(!
ObjectUtils
.
isEmpty
(
stateMap
)
&&
stateMap
.
containsKey
(
"update_date"
)
&&
stateMap
.
containsKey
(
"equipment_index_name"
))
{
if
(!
ObjectUtils
.
isEmpty
(
stateMap
)
&&
stateMap
.
containsKey
(
"update_date"
)
&&
stateMap
.
containsKey
(
"equipment_index_name"
))
{
item
.
put
(
"update_time"
,
String
.
valueOf
(
stateMap
.
get
(
"update_date"
)).
replaceAll
(
"T"
,
" "
));
item
.
put
(
"update_time"
,
String
.
valueOf
(
stateMap
.
get
(
"update_date"
)).
replaceAll
(
"T"
,
" "
));
if
(!
ObjectUtils
.
isEmpty
(
stateMap
.
get
(
"value"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
stateMap
.
get
(
"value"
)))
{
...
@@ -347,13 +347,13 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -347,13 +347,13 @@ public class SupervisionConfigureController extends AbstractBaseController {
}
}
long
res
=
nowDateTime
-
update_time
;
long
res
=
nowDateTime
-
update_time
;
long
diffMinute
=
res
/
1000
/
60
;
long
diffMinute
=
res
/
1000
/
60
;
if
(
diffMinute
<=
5
)
{
if
(
diffMinute
>
5
)
{
time
=
tru
e
;
time
=
fals
e
;
}
}
item
.
put
(
"upTime"
,
diffMinute
);
item
.
put
(
"upTime"
,
diffMinute
);
}
}
}
}
item
.
put
(
"stateDesc"
,
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
==
0
||
time
?
"正常"
:
"异常"
);
item
.
put
(
"stateDesc"
,
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
==
0
&&
time
?
"正常"
:
"异常"
);
return
item
;
return
item
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
Object
>>
stateMap
=
fireFightingSystemMapper
.
queryStartAndStopBySpecificId
(
ids
);
List
<
Map
<
String
,
Object
>>
stateMap
=
fireFightingSystemMapper
.
queryStartAndStopBySpecificId
(
ids
);
...
...
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