Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
fc33d787
Commit
fc33d787
authored
Jan 14, 2021
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:消防预案重点设备关联视频、消防炮
parent
21d66369
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
1 deletion
+73
-1
ContingencyRo.java
...yeejoin/amos/fas/business/action/model/ContingencyRo.java
+6
-0
EquipmentSpecificMapper.java
...amos/fas/business/dao/mapper/EquipmentSpecificMapper.java
+8
-0
ImpAndFireEquipMapper.java
...n/amos/fas/business/dao/mapper/ImpAndFireEquipMapper.java
+7
-0
HandlerMqttMessageImpl.java
...mos/fas/business/service/impl/HandlerMqttMessageImpl.java
+17
-0
application.properties
...ireAutoSysStart/src/main/resources/application.properties
+3
-1
dbTemplate_equipment_specific.xml
...ain/resources/db/mapper/dbTemplate_equipment_specific.xml
+18
-0
dbTemplate_impAndfire_equip.xml
.../main/resources/db/mapper/dbTemplate_impAndfire_equip.xml
+14
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/model/ContingencyRo.java
View file @
fc33d787
...
@@ -85,4 +85,10 @@ public class ContingencyRo implements Serializable {
...
@@ -85,4 +85,10 @@ public class ContingencyRo implements Serializable {
@Label
(
"遥信数据"
)
@Label
(
"遥信数据"
)
private
HashMap
<
String
,
Integer
>
telesignallingMap
;
private
HashMap
<
String
,
Integer
>
telesignallingMap
;
//消防炮
@Label
(
"消防炮编号"
)
private
String
fireMonitorCodes
;
@Label
(
"消防炮id"
)
private
String
fireMonitorIds
;
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/EquipmentSpecificMapper.java
View file @
fc33d787
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.fas.dao.entity.FmeaEquipmentPoint;
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.fas.dao.entity.FmeaEquipmentPoint;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 设备配置 Mapper 接口
* 设备配置 Mapper 接口
...
@@ -69,4 +70,11 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecificVo>
...
@@ -69,4 +70,11 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecificVo>
* @Date 2020/11/17 19:32
* @Date 2020/11/17 19:32
*/
*/
EquipmentSpecificForRiskVo
getOneById
(
@Param
(
"id"
)
long
id
);
EquipmentSpecificForRiskVo
getOneById
(
@Param
(
"id"
)
long
id
);
/**
* 查询重点设备关联消防炮
* @param equipmentId
* @return
*/
Map
queryFireMonitor
(
@Param
(
"equipmentId"
)
String
equipmentId
,
@Param
(
"fireMonitor"
)
String
fireMonitor
);
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/ImpAndFireEquipMapper.java
View file @
fc33d787
...
@@ -32,6 +32,13 @@ public interface ImpAndFireEquipMapper extends BaseMapper {
...
@@ -32,6 +32,13 @@ public interface ImpAndFireEquipMapper extends BaseMapper {
Map
queryForCamera
(
@Param
(
"equipmentId"
)
String
equipmentId
);
Map
queryForCamera
(
@Param
(
"equipmentId"
)
String
equipmentId
);
/**
* 查询重点设备关联视频点位
* @param equipmentId
* @return
*/
Map
queryCamera
(
@Param
(
"equipmentId"
)
String
equipmentId
);
List
<
Map
<
String
,
Object
>>
findEquipVideo
();
List
<
Map
<
String
,
Object
>>
findEquipVideo
();
public
Boolean
existsAlarmPointByEqpPointIdAndEquipId
(
@Param
(
"pointId"
)
long
pointId
,
@Param
(
"equipmentId"
)
long
equipmentId
);
public
Boolean
existsAlarmPointByEqpPointIdAndEquipId
(
@Param
(
"pointId"
)
long
pointId
,
@Param
(
"equipmentId"
)
long
equipmentId
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/HandlerMqttMessageImpl.java
View file @
fc33d787
...
@@ -89,6 +89,9 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
...
@@ -89,6 +89,9 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
@Value
(
"${emqx.defaultTopic}"
)
@Value
(
"${emqx.defaultTopic}"
)
private
String
defaultTopic
;
private
String
defaultTopic
;
@Value
(
"${data.type.fireMonitor}"
)
private
String
fireMonitor
;
@Autowired
@Autowired
private
WebMqttComponent
webMqttComponent
;
private
WebMqttComponent
webMqttComponent
;
...
@@ -413,6 +416,20 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
...
@@ -413,6 +416,20 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
// contingencyRo.setAdminName("admin");
// contingencyRo.setAdminName("admin");
// contingencyRo.setFireEquipmentPosition(fireEquipment.getPosition3d());
// contingencyRo.setFireEquipmentPosition(fireEquipment.getPosition3d());
//查询重点设备关联视频点位
Map
cameraInfo
=
impAndFireEquipMapper
.
queryCamera
(
String
.
valueOf
(
equipment
.
getId
()));
if
(
cameraInfo
!=
null
&&
!
cameraInfo
.
isEmpty
())
{
contingencyRo
.
setCameraCodes
(
String
.
valueOf
(
cameraInfo
.
get
(
"codes"
)));
contingencyRo
.
setCameraIds
(
String
.
valueOf
(
cameraInfo
.
get
(
"ids"
)));
}
//查询重点设备关联消防炮
Map
fireMonitorInfo
=
equipmentSpecificMapper
.
queryFireMonitor
(
String
.
valueOf
(
equipment
.
getId
()),
fireMonitor
);
if
(
fireMonitorInfo
!=
null
&&
!
fireMonitorInfo
.
isEmpty
())
{
contingencyRo
.
setFireMonitorCodes
(
String
.
valueOf
(
fireMonitorInfo
.
get
(
"codes"
)));
contingencyRo
.
setFireMonitorIds
(
String
.
valueOf
(
fireMonitorInfo
.
get
(
"ids"
)));
}
List
<
PreplanPicture
>
pictures
=
iPreplanPictureDao
.
findByEquipmentId
(
Long
.
valueOf
(
equipment
.
getId
()));
List
<
PreplanPicture
>
pictures
=
iPreplanPictureDao
.
findByEquipmentId
(
Long
.
valueOf
(
equipment
.
getId
()));
if
(!
CollectionUtils
.
isEmpty
(
pictures
))
{
if
(!
CollectionUtils
.
isEmpty
(
pictures
))
{
for
(
PreplanPicture
picture
:
pictures
)
{
for
(
PreplanPicture
picture
:
pictures
)
{
...
...
YeeAmosFireAutoSysStart/src/main/resources/application.properties
View file @
fc33d787
...
@@ -79,7 +79,7 @@ autoSys.push.type=mqtt
...
@@ -79,7 +79,7 @@ autoSys.push.type=mqtt
#消防视频:xfsp
#消防视频:xfsp
#消防车:2101
#消防车:2101
data.type.fireC
hambe
r
=
2101
data.type.fireC
a
r
=
2101
#消防小室:9301
#消防小室:9301
data.type.fireChamber
=
9301
data.type.fireChamber
=
9301
#消防水池:9302
#消防水池:9302
...
@@ -88,6 +88,8 @@ data.type.pool=9302
...
@@ -88,6 +88,8 @@ data.type.pool=9302
data.type.fireFoamRoom
=
9305
data.type.fireFoamRoom
=
9305
#探测器:8501
#探测器:8501
data.type.monitorEquipment
=
8501
data.type.monitorEquipment
=
8501
#消防炮:3103
data.type.fireMonitor
=
3103
#灭火器:3104
#灭火器:3104
data.type.extinguisher
=
3104
data.type.extinguisher
=
3104
#消火栓:3105
#消火栓:3105
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_equipment_specific.xml
View file @
fc33d787
...
@@ -185,4 +185,21 @@
...
@@ -185,4 +185,21 @@
where
where
wes.id=#{id}
wes.id=#{id}
</select>
</select>
<select
id=
"queryFireMonitor"
resultType=
"map"
>
SELECT
GROUP_CONCAT( es.id ) ids,
GROUP_CONCAT( es.`code` ) codes
FROM
`f_equipment_fire_equipment` fe
LEFT JOIN wl_equipment_specific es ON fe.fire_equipment_id = es.equipment_detail_id
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
<where>
<if
test=
"equipmentId !=null and equipmentId != ''"
>
AND fe.equipment_id = #{equipmentId}
</if>
<if
test=
"fireMonitor !=null and fireMonitor != ''"
>
AND ed.`code` LIKE CONCAT(fireMonitor,'%')
</if>
</where>
</select>
</mapper>
</mapper>
\ No newline at end of file
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_impAndfire_equip.xml
View file @
fc33d787
...
@@ -126,6 +126,20 @@
...
@@ -126,6 +126,20 @@
)
)
</select>
</select>
<select
id=
"queryCamera"
resultType=
"map"
>
SELECT
GROUP_CONCAT(v.id) ids,
GROUP_CONCAT(v.`code`) codes
FROM
wl_video v
RIGHT JOIN wl_video_important_equipment e ON e.video_id = v.id
<where>
<if
test=
"equipmentId !=null and equipmentId != ''"
>
e.important_equipment_id = #{equipmentId}
</if>
</where>
</select>
<select
id=
"findEquipVideo"
resultType=
"map"
>
<select
id=
"findEquipVideo"
resultType=
"map"
>
SELECT
SELECT
eq.`name` equipName,
eq.`name` equipName,
...
...
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