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
5247f7f9
Commit
5247f7f9
authored
Mar 27, 2021
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消息推送
parent
333bbd40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
HandlerMqttMessageImpl.java
...mos/fas/business/service/impl/HandlerMqttMessageImpl.java
+5
-6
application.properties
...ireAutoSysStart/src/main/resources/application.properties
+1
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/HandlerMqttMessageImpl.java
View file @
5247f7f9
...
...
@@ -162,7 +162,7 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
deviceData
.
setMonitor
(
equipment
!=
null
?
equipment
.
getName
()
:
""
);
deviceData
.
setId
(
String
.
valueOf
(
equipmentSpecific
.
getId
()));
deviceData
.
setCode
(
equipmentSpecific
.
getCode
());
if
(
EquipmentRiskTypeEnum
.
HZGJ
.
getCode
().
equals
(
specificIndexType
))
{
//设备告警处理逻辑
if
(
nameKey
.
equals
(
"fireAlarm"
))
{
//设备告警处理逻辑
log
.
info
(
"(报警)Message type is: "
+
specificIndexType
);
//通知刷新3d页面告警数据
...
...
@@ -175,10 +175,10 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
webMqttComponent
.
publish
(
title
,
JSON
.
toJSONString
(
view3dService
.
getSafetyExecuteListTop5
(
"fire"
,
equipmentSpecific
.
getOrgCode
())));
// 报警触发调用规则服务
if
(!
ObjectUtils
.
isEmpty
(
equipment
)
&&
!
ObjectUtils
.
isEmpty
(
equipment
.
getReservePlan
())){
executeDynamicPlan
(
deviceData
,
equipment
,
equipmentSpecific
,
toke
);
if
(
EquipmentRiskTypeEnum
.
HZGJ
.
getCode
().
equals
(
specificIndexType
)&&
!
ObjectUtils
.
isEmpty
(
equipment
)
&&
!
ObjectUtils
.
isEmpty
(
equipment
.
getReservePlan
())){
executeDynamicPlan
(
deviceData
,
equipment
,
equipmentSpecific
,
toke
);
}
}
else
if
(
EquipmentRiskTypeEnum
.
GZ
.
getCode
().
equals
(
specificIndexType
))
{
// 设备故障处理逻辑
}
else
if
(
nameKey
.
equals
(
"fault"
))
{
// 设备故障处理逻辑
log
.
info
(
"(故障)Message type is: "
+
specificIndexType
);
long
equipId
=
0
;
if
(
StringUtil
.
isNotEmpty
(
equipment
))
{
...
...
@@ -228,8 +228,7 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
String
key
=
equipmentSpecificIndex
.
getIotCode
()+
"-"
+
equipmentSpecificIndex
.
getNameKey
();
if
(
redisTemplate
.
hasKey
(
key
)){
EquipmentSpecificIndexVo
equipmentSpecificIndexVo
=
JSON
.
parseObject
(
redisTemplate
.
opsForValue
().
get
(
key
).
toString
(),
EquipmentSpecificIndexVo
.
class
);
if
(
equipmentSpecificIndex
.
getEquipmentSpecificId
().
toString
().
equals
(
equipmentSpecificIndexVo
.
getEquipmentSpecificId
().
toString
())
&&
equipmentSpecificIndex
.
getValue
().
equals
(
equipmentSpecificIndexVo
.
getValue
())){
if
(
equipmentSpecificIndex
.
getValue
().
equals
(
equipmentSpecificIndexVo
.
getValue
())){
return
false
;
}
}
...
...
YeeAmosFireAutoSysStart/src/main/resources/application.properties
View file @
5247f7f9
spring.application.name
=
AMOS-AUTOSYS
-my
spring.application.name
=
AMOS-AUTOSYS
server.servlet.context-path
=
/fireAutoSys
server.port
=
8083
spring.profiles.active
=
dev
...
...
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