Commit 8d4e0e45 authored by litengwei's avatar litengwei

预案去掉查询预案回放表

parent a0bbd2ca
......@@ -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();
......
......@@ -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());
}
}
......@@ -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();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment