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
90f99f3f
Commit
90f99f3f
authored
Nov 24, 2020
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
15ded32b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
EquipmentRiskTypeEnum.java
.../yeejoin/amos/fas/common/enums/EquipmentRiskTypeEnum.java
+1
-1
HandlerMqttMessageImpl.java
...mos/fas/business/service/impl/HandlerMqttMessageImpl.java
+2
-2
No files found.
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/common/enums/EquipmentRiskTypeEnum.java
View file @
90f99f3f
...
@@ -10,7 +10,7 @@ package com.yeejoin.amos.fas.common.enums;
...
@@ -10,7 +10,7 @@ package com.yeejoin.amos.fas.common.enums;
*/
*/
public
enum
EquipmentRiskTypeEnum
{
public
enum
EquipmentRiskTypeEnum
{
HZGJ
(
"
alarm"
,
"火灾告警"
),
GZ
(
"trouble
"
,
"故障"
);
HZGJ
(
"
FIREALARM"
,
"火灾告警"
),
GZ
(
"BREAKDOWN
"
,
"故障"
);
private
String
code
;
private
String
code
;
private
String
type
;
private
String
type
;
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/HandlerMqttMessageImpl.java
View file @
90f99f3f
...
@@ -135,13 +135,13 @@ public class HandlerMqttMessageImpl implements IEquipmentHandlerService {
...
@@ -135,13 +135,13 @@ 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
(
EquipmentRiskTypeEnum
.
HZGJ
.
get
Typ
e
().
equals
(
equipmentSpecificIndex
.
getType
()))
{
//设备告警处理逻辑
if
(
EquipmentRiskTypeEnum
.
HZGJ
.
get
Cod
e
().
equals
(
equipmentSpecificIndex
.
getType
()))
{
//设备告警处理逻辑
log
.
info
(
"(报警)Message type is: "
+
equipmentSpecificIndex
.
getType
());
log
.
info
(
"(报警)Message type is: "
+
equipmentSpecificIndex
.
getType
());
// 报警触发调用规则服务
// 报警触发调用规则服务
executeDynamicPlan
(
deviceData
,
equipment
,
equipmentSpecific
,
toke
);
executeDynamicPlan
(
deviceData
,
equipment
,
equipmentSpecific
,
toke
);
}
else
if
(
EquipmentRiskTypeEnum
.
GZ
.
get
Typ
e
().
equals
(
equipmentSpecificIndex
.
getType
()))
{
// 设备故障处理逻辑
}
else
if
(
EquipmentRiskTypeEnum
.
GZ
.
get
Cod
e
().
equals
(
equipmentSpecificIndex
.
getType
()))
{
// 设备故障处理逻辑
log
.
info
(
"(故障)Message type is: "
+
equipmentSpecificIndex
.
getType
());
log
.
info
(
"(故障)Message type is: "
+
equipmentSpecificIndex
.
getType
());
long
equipId
=
0
;
long
equipId
=
0
;
if
(
StringUtil
.
isNotEmpty
(
equipment
))
{
if
(
StringUtil
.
isNotEmpty
(
equipment
))
{
...
...
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