From 149c1bc2d195eb79b84f2e69c83413f27bce4b99 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期六, 30 三月 2019 14:43:56 +0800
Subject: [PATCH] 订单服务核心 加入商户处理侦听类
---
java110-core/src/main/java/com/java110/core/context/BusinessServiceDataFlow.java | 17 ++++-------------
1 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/java110-core/src/main/java/com/java110/core/context/BusinessServiceDataFlow.java b/java110-core/src/main/java/com/java110/core/context/BusinessServiceDataFlow.java
index ad21b1c..250d1f1 100644
--- a/java110-core/src/main/java/com/java110/core/context/BusinessServiceDataFlow.java
+++ b/java110-core/src/main/java/com/java110/core/context/BusinessServiceDataFlow.java
@@ -1,6 +1,5 @@
package com.java110.core.context;
-import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.common.constant.ResponseConstant;
import com.java110.common.exception.InitDataFlowContextException;
@@ -18,30 +17,21 @@
public class BusinessServiceDataFlow extends AbstractDataFlowContext {
- private String businessType;
-
private String bId;
private Map<String,Object> paramOut;
@Override
- public Orders getOrder() {
+ public IOrders getOrder() {
return this;
}
- public String getBusinessType() {
- return businessType;
- }
-
- public void setBusinessType(String businessType) {
- this.businessType = businessType;
- }
public BusinessServiceDataFlow(Date startDate, String code) {
super(startDate, code);
}
- public BusinessServiceDataFlow builder(String reqInfo, Map<String, String> headerAll) throws InitDataFlowContextException {
+ public BusinessServiceDataFlow doBuilder(String reqInfo, Map<String, String> headerAll) throws InitDataFlowContextException {
try{
Business business = null;
JSONObject reqInfoObj = JSONObject.parseObject(reqInfo);
@@ -60,7 +50,8 @@
businesses.add(business);
this.setCurrentBusiness(business);
if (headerAll != null){
- this.headers.putAll(headerAll);
+ this.requestCurrentHeaders.putAll(headerAll);
+ this.requestHeaders.putAll(headerAll);
}
}catch (Exception e){
throw new InitDataFlowContextException(ResponseConstant.RESULT_PARAM_ERROR,"鍒濆鍖栧璞� BusinessServiceDataFlow 澶辫触 "+reqInfo);
--
Gitblit v1.8.0