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
8d4e0e45
Commit
8d4e0e45
authored
Aug 27, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预案去掉查询预案回放表
parent
a0bbd2ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+1
-0
ContingencyLogListener.java
...join/amos/fas/business/action/ContingencyLogListener.java
+1
-1
ContingercyAsyncEventListener.java
...mos/fas/business/event/ContingercyAsyncEventListener.java
+4
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
8d4e0e45
...
...
@@ -450,6 +450,7 @@ public class ContingencyAction implements CustomerAction {
@RuleMethod
(
methodLabel
=
"交互动作"
,
project
=
"换流站消防专项预案"
)
@Transactional
public
void
operation
(
@MethodParam
(
paramLabel
=
"动作名称"
)
String
actionName
,
@MethodParam
(
paramLabel
=
"图标"
)
String
icon
,
@MethodParam
(
paramLabel
=
"提示信息"
)
String
tips
,
@MethodParam
(
paramLabel
=
"按钮json字符串"
)
String
buttonJson
,
@MethodParam
(
paramLabel
=
"预案对象"
)
Object
paramObj
)
{
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
String
batchNo
=
contingencyRo
.
getBatchNo
();
String
buttonCode
=
contingencyRo
.
getButtonCode
();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyLogListener.java
View file @
8d4e0e45
...
...
@@ -17,7 +17,7 @@ public class ContingencyLogListener implements ApplicationListener<ContingencyEv
@Override
public
void
onApplicationEvent
(
ContingencyEvent
event
)
{
ruleRunningSnapshotService
.
reacordPlan
(
event
.
getTopic
(),
event
.
getMsgType
(),
event
.
getMsgBody
(),
event
.
getContingency
());
//
ruleRunningSnapshotService.reacordPlan(event.getTopic(), event.getMsgType(), event.getMsgBody(), event.getContingency());
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/event/ContingercyAsyncEventListener.java
View file @
8d4e0e45
...
...
@@ -6,6 +6,7 @@ import org.springframework.context.annotation.Configuration;
import
org.springframework.scheduling.annotation.Async
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
java.time.Instant
;
import
java.util.List
;
/**
...
...
@@ -34,6 +35,7 @@ public class ContingercyAsyncEventListener implements ApplicationListener<Contin
RequestContext
.
setAgencyCode
(
event
.
getContext
().
getAgencyCode
());
RequestContext
.
setExeUserId
(
event
.
getContext
().
getExcutedUserId
());
long
start
=
Instant
.
now
().
toEpochMilli
();
for
(
EventHandler
handler
:
handlers
)
{
if
(
handler
.
getEventType
().
equals
(
event
.
getEventType
()))
{
try
{
...
...
@@ -44,7 +46,8 @@ public class ContingercyAsyncEventListener implements ApplicationListener<Contin
}
}
long
end
=
Instant
.
now
().
toEpochMilli
();
System
.
out
.
println
(
"============EventHandler"
+(
end
-
start
));
RequestContext
.
clean
();
}
}
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