From 4f9c122f237fbee16d5ef9c602b6db95d28ed7b0 Mon Sep 17 00:00:00 2001
From: mrzcc <121184950@qq.com>
Date: 星期一, 10 二月 2020 14:35:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
java110-event/src/main/java/com/java110/event/center/DataFlowEventPublishing.java | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/java110-event/src/main/java/com/java110/event/center/DataFlowEventPublishing.java b/java110-event/src/main/java/com/java110/event/center/DataFlowEventPublishing.java
index f6d76e4..35ca38f 100644
--- a/java110-event/src/main/java/com/java110/event/center/DataFlowEventPublishing.java
+++ b/java110-event/src/main/java/com/java110/event/center/DataFlowEventPublishing.java
@@ -1,10 +1,11 @@
package com.java110.event.center;
-import com.java110.common.constant.CommonConstant;
-import com.java110.common.exception.BusinessException;
-import com.java110.common.factory.ApplicationContextFactory;
-import com.java110.common.log.LoggerEngine;
-import com.java110.common.util.Assert;
+import com.alibaba.fastjson.JSONObject;
+import com.java110.utils.constant.CommonConstant;
+import com.java110.utils.exception.BusinessException;
+import com.java110.utils.factory.ApplicationContextFactory;
+import com.java110.utils.log.LoggerEngine;
+import com.java110.utils.util.Assert;
import com.java110.core.context.IOrderDataFlowContext;
import com.java110.entity.order.Business;
import com.java110.event.center.event.*;
@@ -195,7 +196,7 @@
listener.soService(event);
}catch (Exception e){
LoggerEngine.error("鍙戝竷渚﹀惉澶辫触",e);
- throw new RuntimeException("鍙戝竷渚﹀惉澶辫触,"+listener+ event + e);
+ throw new RuntimeException(e.getMessage());
}
}
@@ -252,6 +253,16 @@
multicastEvent(new InvokeBusinessSystemEvent("",dataFlow));
}
+
+ /**
+ * 璋冪敤涓氬姟绯荤粺鎴愬姛鍚庝簨浠�
+ * @param dataFlow
+ * @param business 鎴愬姛鐨勪簨浠朵笟鍔℃暟鎹皝瑁呭璞�
+ */
+ public static void invokeBusinessBSuccess(IOrderDataFlowContext dataFlow, Business business, JSONObject businessResponseData){
+ multicastEvent(new InvokeBusinessBSuccessEvent("",dataFlow,business,businessResponseData));
+ }
+
/**
* 璋冪敤涓氬姟绯荤粺鎴愬姛鍚庝簨浠�
* @param dataFlow
--
Gitblit v1.8.0