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
dd7480c3
Commit
dd7480c3
authored
Oct 12, 2022
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
ff9b4ff2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+3
-5
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+3
-1
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 @
dd7480c3
...
@@ -321,18 +321,17 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -321,18 +321,17 @@ public class SupervisionConfigureController extends AbstractBaseController {
item
.
put
(
"equipment_index_name"
,
stateMap
.
get
(
"equipment_index_name"
));
item
.
put
(
"equipment_index_name"
,
stateMap
.
get
(
"equipment_index_name"
));
if
(
"启动"
.
equals
(
stateMap
.
get
(
"equipment_index_name"
)))
{
if
(
"启动"
.
equals
(
stateMap
.
get
(
"equipment_index_name"
)))
{
long
update_time
=
0L
;
long
update_time
=
0L
;
try
{
try
{
update_time
=
sdf
.
parse
(
String
.
valueOf
(
stateMap
.
get
(
"update_date"
)).
replaceAll
(
"T"
,
" "
)).
getTime
();
update_time
=
sdf
.
parse
(
String
.
valueOf
(
stateMap
.
get
(
"update_date"
)).
replaceAll
(
"T"
,
" "
)).
getTime
();
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
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
=
true
;
time
=
true
;
}
}
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
?
"正常"
:
"异常"
);
...
@@ -341,9 +340,8 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -341,9 +340,8 @@ public class SupervisionConfigureController extends AbstractBaseController {
List
<
Map
<
String
,
Object
>>
stateMap
=
fireFightingSystemMapper
.
queryStartAndStopBySpecificId
(
ids
);
List
<
Map
<
String
,
Object
>>
stateMap
=
fireFightingSystemMapper
.
queryStartAndStopBySpecificId
(
ids
);
long
diffMinute
=
0L
;
long
diffMinute
=
0L
;
if
(!
ObjectUtils
.
isEmpty
(
stateMap
))
{
if
(!
ObjectUtils
.
isEmpty
(
stateMap
))
{
List
<
Map
<
String
,
Object
>>
map
=
fireFightingSystemMapper
.
queryStateBySpecificId
((
long
)
stateMap
.
get
(
0
).
get
(
"equipment_specific_id"
));
String
startTime
=
stateMap
.
get
(
0
).
get
(
"update_date"
).
toString
();
String
startTime
=
map
.
get
(
0
).
get
(
"update_date"
).
toString
();
String
endTime
=
stateMap
.
get
(
1
).
get
(
"update_date"
).
toString
();
String
endTime
=
map
.
get
(
1
).
get
(
"update_date"
).
toString
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
long
start
=
0L
;
long
start
=
0L
;
long
end
=
0L
;
long
end
=
0L
;
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
dd7480c3
...
@@ -1347,7 +1347,7 @@
...
@@ -1347,7 +1347,7 @@
find_in_set( #{param.system}, `wlesal`.`system_codes` )
find_in_set( #{param.system}, `wlesal`.`system_codes` )
</if>
</if>
<if
test=
"param.fireEquipmentSpecificIndexKey != null and param.fireEquipmentSpecificIndexKey != ''"
>
<if
test=
"param.fireEquipmentSpecificIndexKey != null and param.fireEquipmentSpecificIndexKey != ''"
>
AND wles.
equipment_specific_index_key like concat (#{param.fireEquipmentSpecificIndexKey},'%')
AND wles.
type = #{param.fireEquipmentSpecificIndexKey}
</if>
</if>
<if
test=
"param.bizOrgCode != null and param.bizOrgCode != ''"
>
<if
test=
"param.bizOrgCode != null and param.bizOrgCode != ''"
>
AND wles.biz_org_code like concat (#{param.bizOrgCode},'%')
AND wles.biz_org_code like concat (#{param.bizOrgCode},'%')
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
dd7480c3
...
@@ -4930,10 +4930,12 @@
...
@@ -4930,10 +4930,12 @@
<foreach
collection=
"ids"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"ids"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
#{item}
</foreach>
</foreach>
AND
</if>
</if>
AND
i.equipment_index_key in ('FHS_PressurePump_Start', 'FHS_PressurePump_Stop')
i.equipment_index_key in ('FHS_PressurePump_Start', 'FHS_PressurePump_Stop')
ORDER BY
ORDER BY
i.update_date DESC
i.update_date DESC
limit 2
</select>
</select>
<select
id=
"queryStateBySpecificId"
resultType=
"java.util.Map"
>
<select
id=
"queryStateBySpecificId"
resultType=
"java.util.Map"
>
SELECT
SELECT
...
...
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