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
a0fb6bff
Commit
a0fb6bff
authored
Mar 29, 2021
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'CSFAS_V2.1.3.3' of…
Merge branch 'CSFAS_V2.1.3.3' of
http://yeejoin.3322.org:3213/station/YeeAmosFireAutoSysRoot
into CSFAS_V2.1.3.3
parents
b73d4be6
561d66c9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
4 deletions
+27
-4
HandlerMqttMessageImpl.java
...mos/fas/business/service/impl/HandlerMqttMessageImpl.java
+2
-2
RiskSourceServiceImpl.java
...amos/fas/business/service/impl/RiskSourceServiceImpl.java
+1
-0
dbTemplate_view3d.xml
...sStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
+24
-2
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/HandlerMqttMessageImpl.java
View file @
a0fb6bff
...
@@ -163,7 +163,7 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
...
@@ -163,7 +163,7 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
deviceData
.
setMonitor
(
equipment
!=
null
?
equipment
.
getName
()
:
""
);
deviceData
.
setMonitor
(
equipment
!=
null
?
equipment
.
getName
()
:
""
);
deviceData
.
setId
(
String
.
valueOf
(
equipmentSpecific
.
getId
()));
deviceData
.
setId
(
String
.
valueOf
(
equipmentSpecific
.
getId
()));
deviceData
.
setCode
(
equipmentSpecific
.
getCode
());
deviceData
.
setCode
(
equipmentSpecific
.
getCode
());
if
(
nameKey
.
equals
(
"fireAlarm"
))
{
//设备告警处理逻辑
if
(
"fireAlarm"
.
equals
(
nameKey
))
{
//设备告警处理逻辑
log
.
info
(
"(报警)Message type is: "
+
specificIndexType
);
log
.
info
(
"(报警)Message type is: "
+
specificIndexType
);
//通知刷新3d页面告警数据
//通知刷新3d页面告警数据
...
@@ -183,7 +183,7 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
...
@@ -183,7 +183,7 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
if
(
EquipmentRiskTypeEnum
.
HZGJ
.
getCode
().
equals
(
specificIndexType
)&&!
ObjectUtils
.
isEmpty
(
equipment
)
&&
!
ObjectUtils
.
isEmpty
(
equipment
.
getReservePlan
())){
if
(
EquipmentRiskTypeEnum
.
HZGJ
.
getCode
().
equals
(
specificIndexType
)&&!
ObjectUtils
.
isEmpty
(
equipment
)
&&
!
ObjectUtils
.
isEmpty
(
equipment
.
getReservePlan
())){
executeDynamicPlan
(
deviceData
,
equipment
,
equipmentSpecific
,
toke
);
executeDynamicPlan
(
deviceData
,
equipment
,
equipmentSpecific
,
toke
);
}
}
}
else
if
(
nameKey
.
equals
(
"fault"
))
{
// 设备故障处理逻辑
}
else
if
(
"fault"
.
equals
(
nameKey
))
{
// 设备故障处理逻辑
log
.
info
(
"(故障)Message type is: "
+
specificIndexType
);
log
.
info
(
"(故障)Message type is: "
+
specificIndexType
);
long
equipId
=
0
;
long
equipId
=
0
;
if
(
StringUtil
.
isNotEmpty
(
equipment
))
{
if
(
StringUtil
.
isNotEmpty
(
equipment
))
{
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/RiskSourceServiceImpl.java
View file @
a0fb6bff
...
@@ -1077,6 +1077,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
...
@@ -1077,6 +1077,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
EquipmentSpecificIndexVo
equipmentSpecificIndexVo
=
new
EquipmentSpecificIndexVo
();
EquipmentSpecificIndexVo
equipmentSpecificIndexVo
=
new
EquipmentSpecificIndexVo
();
equipmentSpecificIndexVo
.
setEquipmentSpecificId
(
Long
.
parseLong
(
list
.
get
(
NumberEnum
.
ZERO
.
getValue
()).
toString
()));
equipmentSpecificIndexVo
.
setEquipmentSpecificId
(
Long
.
parseLong
(
list
.
get
(
NumberEnum
.
ZERO
.
getValue
()).
toString
()));
equipmentSpecificIndexVo
.
setType
(
typeCode
);
equipmentSpecificIndexVo
.
setType
(
typeCode
);
equipmentSpecificIndexVo
.
setNameKey
(
"fireAlarm"
);
TopicEntityVo
topicEntity
=
new
TopicEntityVo
();
TopicEntityVo
topicEntity
=
new
TopicEntityVo
();
Equipment
equipment
=
equipmentService
.
queryOne
(
id
);
Equipment
equipment
=
equipmentService
.
queryOne
(
id
);
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
View file @
a0fb6bff
...
@@ -488,13 +488,35 @@
...
@@ -488,13 +488,35 @@
ala.id,
ala.id,
ala.equipment_specific_id AS pointId,
ala.equipment_specific_id AS pointId,
'monitorEquipment' AS type,
'monitorEquipment' AS type,
spe.
CODE,
spe.
CODE,
ala.equipment_specific_index_name,
ala.equipment_specific_index_name,
CONCAT( ala.equipment_specific_index_name, '(', ala.equipment_specific_name, ')' ) AS label,
CONCAT(
ala.equipment_specific_index_name,
'(',
ala.equipment_specific_name,
')',
IF (
(
ISNULL(ws.full_name)
AND ISNULL(sd.description)
),
'',
CONCAT(
'【',
IFNULL(ws.full_name, ''),
' ',
IFNULL(sd.description, ''),
'】'
)
)
) AS label,
ala.create_date AS changeDate
ala.create_date AS changeDate
FROM
FROM
wl_equipment_specific_alarm AS ala
wl_equipment_specific_alarm AS ala
LEFT JOIN wl_equipment_specific AS spe ON ala.equipment_specific_id = spe.id
LEFT JOIN wl_equipment_specific AS spe ON ala.equipment_specific_id = spe.id
LEFT JOIN wl_stock_detail sd ON sd.equipment_specific_id = spe.id
LEFT JOIN wl_warehouse_structure ws ON ws.id = sd.warehouse_structure_id
WHERE ala.status = true
WHERE ala.status = true
AND (ala.org_code = #{orgCode} OR ala.org_code like CONCAT(#{orgCode},'-%'))
AND (ala.org_code = #{orgCode} OR ala.org_code like CONCAT(#{orgCode},'-%'))
AND ala.type = 'FIREALARM'
AND ala.type = 'FIREALARM'
...
...
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