From 8a524787c88a9128cc69af890d4181a01aad0e8c Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期六, 06 七月 2019 23:09:33 +0800
Subject: [PATCH] 修改代码生成器生成的app 加入user_id 的问题
---
java110-core/src/main/java/com/java110/core/context/BusinessServiceDataFlow.java | 21 ++++++++-------------
1 files changed, 8 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..8ea1710 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,10 +1,11 @@
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;
import com.java110.entity.center.Business;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.Date;
@@ -16,32 +17,24 @@
* Created by wuxw on 2018/5/18.
*/
public class BusinessServiceDataFlow extends AbstractDataFlowContext {
+ private final static Logger logger = LoggerFactory.getLogger(BusinessServiceDataFlow.class);
-
- 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,9 +53,11 @@
businesses.add(business);
this.setCurrentBusiness(business);
if (headerAll != null){
- this.headers.putAll(headerAll);
+ this.requestCurrentHeaders.putAll(headerAll);
+ this.requestHeaders.putAll(headerAll);
}
}catch (Exception e){
+ logger.error("鍒濆鍖栧璞� BusinessServiceDataFlow 澶辫触",e);
throw new InitDataFlowContextException(ResponseConstant.RESULT_PARAM_ERROR,"鍒濆鍖栧璞� BusinessServiceDataFlow 澶辫触 "+reqInfo);
}
return this;
--
Gitblit v1.8.0