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
0058884f
Commit
0058884f
authored
Jan 10, 2023
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:解决APP端,消息刷新不同步问题
parent
89cb794b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
ContingencyInstanceImpl.java
...os/fas/business/service/impl/ContingencyInstanceImpl.java
+8
-5
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyInstanceImpl.java
View file @
0058884f
...
@@ -186,7 +186,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -186,7 +186,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
return
categorys
;
return
categorys
;
}
}
@Transactional
public
Optional
<
Equipment
>
fire
(
String
batchNo
,
String
stepCode
,
String
contingencyPlanId
,
String
buttonCode
,
String
buttonState
,
String
stepStateOnbutton
)
throws
Exception
{
public
Optional
<
Equipment
>
fire
(
String
batchNo
,
String
stepCode
,
String
contingencyPlanId
,
String
buttonCode
,
String
buttonState
,
String
stepStateOnbutton
)
throws
Exception
{
//火灾误报
//火灾误报
ContingencyOriginalData
contingencyOriginalData
=
iContingencyOriginalDataDao
.
findByBatchNo
(
batchNo
);
ContingencyOriginalData
contingencyOriginalData
=
iContingencyOriginalDataDao
.
findByBatchNo
(
batchNo
);
...
@@ -278,10 +278,10 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -278,10 +278,10 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
publisherPlanLog
(
stepCode
,
buttonCode
,
batchNo
);
publisherPlanLog
(
stepCode
,
buttonCode
,
batchNo
);
// 更新记录之后发送消息刷新
// 更新记录之后发送消息刷新
String
topic
=
String
.
format
(
"/%s/%s/%s"
,
serviceName
,
stationName
,
"plan"
);
//
String topic = String.format("/%s/%s/%s", serviceName, stationName, "plan");
System
.
out
.
println
(
"=========================> 刷新聊天记录 refreshRecord "
);
//
System.out.println("=========================> 刷新聊天记录 refreshRecord ");
//
webMqttComponent
.
publish
(
topic
,
"{\"msgType\":\"refreshRecord\"}"
);
//
webMqttComponent.publish(topic, "{\"msgType\":\"refreshRecord\"}");
}
}
}
else
{
}
else
{
throw
new
Exception
(
"数据异常,请联系管理员."
);
throw
new
Exception
(
"数据异常,请联系管理员."
);
...
@@ -585,6 +585,9 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -585,6 +585,9 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
e
;
throw
e
;
}
finally
{
}
finally
{
// 更新记录之后发送消息刷新
String
topic
=
String
.
format
(
"/%s/%s/%s"
,
serviceName
,
stationName
,
"plan"
);
webMqttComponent
.
publish
(
topic
,
"{\"msgType\":\"refreshRecord\"}"
);
fireQueue
.
removeFirst
();
fireQueue
.
removeFirst
();
}
}
}
}
...
...
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