Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
1db7e543
Commit
1db7e543
authored
Dec 30, 2022
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区分站端系统和直流中心系统消息发送修改
parent
0f4db17d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
14 deletions
+24
-14
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+20
-14
application-dev.properties
...ystem-equip/src/main/resources/application-dev.properties
+4
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
1db7e543
...
@@ -186,6 +186,9 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -186,6 +186,9 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
@Value
(
"${state.code:code}"
)
@Value
(
"${state.code:code}"
)
private
String
stationCode
;
private
String
stationCode
;
@Value
(
"${system.type}"
)
private
String
system
;
@Value
(
"${state.name:name}"
)
@Value
(
"${state.name:name}"
)
private
String
stationName
;
private
String
stationName
;
...
@@ -474,27 +477,30 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -474,27 +477,30 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
// 直流中心消息推送刷新
// 直流中心消息推送刷新
publishDataToDCCenterPage
(
equipmentSpecificIndexList
);
publishDataToDCCenterPage
(
equipmentSpecificIndexList
);
if
(
"zd"
.
equals
(
system
)){
System
.
out
.
println
(
"站端系统----------------"
);
// 向预控系统发送消息
// 向预控系统发送消息
sendEquipSpecIndexToAutosysTopic
(
equipmentSpecificIndexList
);
sendEquipSpecIndexToAutosysTopic
(
equipmentSpecificIndexList
);
// 首页性能指标数据订阅
// 首页性能指标数据订阅
mqttSendGateway
.
sendToMqtt
(
indexTopic
,
JSON
.
toJSONString
(
indexStateList
));
mqttSendGateway
.
sendToMqtt
(
indexTopic
,
JSON
.
toJSONString
(
indexStateList
));
// 组态大屏消息推送,设备表实时指标修改
// 组态大屏消息推送,设备表实时指标修改
intePageSysDataRefresh
(
equipmentSpecificIndexList
,
topicEntity
);
intePageSysDataRefresh
(
equipmentSpecificIndexList
,
topicEntity
);
// 数字换流站同步指标修改
// 数字换流站同步指标修改
syncSpecificIndexsToGS
(
equipmentSpecificIndexList
);
syncSpecificIndexsToGS
(
equipmentSpecificIndexList
);
// 则更新拓扑节点数据及告警状态
// 则更新拓扑节点数据及告警状态
updateNodeDateByEquipId
(
equipmentSpecificIndexList
);
updateNodeDateByEquipId
(
equipmentSpecificIndexList
);
// 向画布推送
// 向画布推送
publishDataToCanvas
(
equipmentSpecificIndexList
);
publishDataToCanvas
(
equipmentSpecificIndexList
);
// 向其他系统推送报警
// 向其他系统推送报警
equipmentAlarmLogsToOtherSystems
(
alarmLogs
);
equipmentAlarmLogsToOtherSystems
(
alarmLogs
);
}
}
}
});
});
}
}
...
...
amos-boot-system-equip/src/main/resources/application-dev.properties
View file @
1db7e543
...
@@ -116,5 +116,8 @@ equipment.pressurepump.stop=FHS_PressurePump_Stop
...
@@ -116,5 +116,8 @@ equipment.pressurepump.stop=FHS_PressurePump_Stop
state.code
=
GW190301
state.code
=
GW190301
state.name
=
锦屏换流站
state.name
=
锦屏换流站
#?????????????
system.type
=
zd
# 是否开启遥测数据上报
# 是否开启遥测数据上报
is.open.telemetering
=
false
is.open.telemetering
=
false
\ No newline at end of file
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