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
f0e943bb
Commit
f0e943bb
authored
Dec 29, 2022
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息同步问题修改
parent
91b71334
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+3
-3
ContingencyInstanceImpl.java
...os/fas/business/service/impl/ContingencyInstanceImpl.java
+2
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
f0e943bb
...
...
@@ -686,9 +686,6 @@ public class ContingencyAction implements CustomerAction {
tempmap1
.
put
(
"status"
,
PlanRecordStatusEnum
.
COMPLETE
.
getCode
());
result
.
add
(
tempmap1
);
this
.
sendcmd
(
"message"
,
paramObj
,
result
);
redisTemplate
.
delete
(
"contingencyRo"
);
// 结束预案,更新设备重点设备参数
if
(
contingencyRo
!=
null
)
{
Equipment
equipment
=
equipmentService
.
queryOne
(
Long
.
parseLong
(
contingencyRo
.
getEquipmentId
()));
...
...
@@ -722,6 +719,9 @@ public class ContingencyAction implements CustomerAction {
// 结束预案,更新预案信息表结束时间
contingencyInstanceInfoService
.
updateEndTimeById
(
batchNo
);
this
.
sendcmd
(
"message"
,
paramObj
,
result
);
redisTemplate
.
delete
(
"contingencyRo"
);
}
private
void
planDetailDataSync
(
PlanDetail
detail
)
{
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyInstanceImpl.java
View file @
f0e943bb
...
...
@@ -287,6 +287,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
// 更新记录之后发送消息刷新
String
topic
=
String
.
format
(
"/%s/%s/%s"
,
serviceName
,
stationName
,
"plan"
);
System
.
out
.
println
(
"=========================> 刷新聊天记录 refreshRecord "
);
webMqttComponent
.
publish
(
topic
,
"{\"msgType\":\"refreshRecord\"}"
);
}
}
else
{
...
...
@@ -397,7 +398,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
contingencyInstanceInfoService
.
updateEndTimeById
(
batchNo
);
String
topic
=
String
.
format
(
"/%s/%s/%s"
,
serviceName
,
stationName
,
"plan"
);
System
.
out
.
println
(
"=========================> 规则触发 预案动作结束 "
);
webMqttComponent
.
publish
(
topic
,
"{\"msgType\":\"stopOperate\"}"
);
}
}
}
...
...
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