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
1efd642c
Commit
1efd642c
authored
Jan 15, 2021
by
吴俊凯
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_upgrade' into dev_upgrade-1225
parents
b4afff5c
0d5d5664
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
10 deletions
+71
-10
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
+15
-9
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 @
1efd642c
...
...
@@ -85,4 +85,10 @@ public class ContingencyRo implements Serializable {
@Label
(
"遥信数据"
)
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 @
1efd642c
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.fas.dao.entity.FmeaEquipmentPoint;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
/**
* 设备配置 Mapper 接口
...
...
@@ -69,4 +70,11 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecificVo>
* @Date 2020/11/17 19:32
*/
EquipmentSpecificForRiskVo
getOneById
(
@Param
(
"id"
)
long
id
);
/**
* 查询重点设备关联消防炮
* @param equipmentId
* @return
*/
Map
queryFireMonitor
(
@Param
(
"equipmentId"
)
String
equipmentId
,
@Param
(
"code"
)
String
fireMonitor
);
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/ImpAndFireEquipMapper.java
View file @
1efd642c
...
...
@@ -31,6 +31,13 @@ public interface ImpAndFireEquipMapper extends BaseMapper {
Map
queryForCamera
(
@Param
(
"equipmentId"
)
String
equipmentId
);
/**
* 查询重点设备关联视频点位
* @param equipmentId
* @return
*/
Map
queryCamera
(
@Param
(
"equipmentId"
)
String
equipmentId
);
List
<
Map
<
String
,
Object
>>
findEquipVideo
();
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 @
1efd642c
...
...
@@ -68,6 +68,9 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
@Value
(
"${emqx.defaultTopic}"
)
private
String
defaultTopic
;
@Value
(
"${data.type.fireMonitor}"
)
private
String
fireMonitor
;
@Autowired
private
WebMqttComponent
webMqttComponent
;
...
...
@@ -292,16 +295,19 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
contingencyRo
.
setEquipmentCode
(
equipment
.
getCode
());
contingencyRo
.
setEquipmentOrgCode
(
equipment
.
getOrgCode
());
// Map cameraInfo = impAndFireEquipMapper.queryForCamera(String.valueOf(equipment.getId()));//查询重点设备关联视频点位,暂不处理
//
// if (cameraInfo != null
) {
//
contingencyRo.setCameraCodes(String.valueOf(cameraInfo.get("codes")));
//
contingencyRo.setCameraIds(String.valueOf(cameraInfo.get("ids")));
//
}
//查询重点设备关联视频点位
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"
)));
}
// contingencyRo.setMobile("13259783333");
// contingencyRo.setAdminName("admin");
// contingencyRo.setFireEquipmentPosition(fireEquipment.getPosition3d());
//查询重点设备关联消防炮
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
()));
if
(!
CollectionUtils
.
isEmpty
(
pictures
))
{
...
...
YeeAmosFireAutoSysStart/src/main/resources/application.properties
View file @
1efd642c
...
...
@@ -79,7 +79,7 @@ autoSys.push.type=mqtt
#消防视频:xfsp
#消防车:2101
data.type.fireC
hambe
r
=
2101
data.type.fireC
a
r
=
2101
#消防小室:9301
data.type.fireChamber
=
9301
#消防水池:9302
...
...
@@ -88,6 +88,8 @@ data.type.pool=9302
data.type.fireFoamRoom
=
9305
#探测器:8501
data.type.monitorEquipment
=
8501
#消防炮:3103
data.type.fireMonitor
=
3103
#灭火器:3104
data.type.extinguisher
=
3104
#消火栓:3105
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_equipment_specific.xml
View file @
1efd642c
...
...
@@ -185,4 +185,21 @@
where
wes.id=#{id}
</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.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=
"code !=null and code != ''"
>
AND ed.`code` LIKE CONCAT(#{code},'%')
</if>
</where>
</select>
</mapper>
\ No newline at end of file
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_impAndfire_equip.xml
View file @
1efd642c
...
...
@@ -126,6 +126,20 @@
)
</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
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