From cc8e103aed0cdaf681d813f7601a38d2dd134289 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期五, 11 八月 2023 00:22:17 +0800
Subject: [PATCH] 优化费用
---
java110-core/src/main/java/com/java110/core/context/BusinessServiceDataFlow.java | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 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
old mode 100644
new mode 100755
index c30959a..aebc1ca
--- 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 com.java110.utils.constant.ResponseConstant;
+import com.java110.utils.exception.InitDataFlowContextException;
+import com.java110.dto.system.AppBusiness;
+import org.slf4j.Logger;
+import com.java110.core.log.LoggerFactory;
import java.util.ArrayList;
import java.util.Date;
@@ -16,8 +17,7 @@
* Created by wuxw on 2018/5/18.
*/
public class BusinessServiceDataFlow extends AbstractDataFlowContext {
-
-
+ private final static Logger logger = LoggerFactory.getLogger(BusinessServiceDataFlow.class);
private String bId;
@@ -25,7 +25,7 @@
private Map<String,Object> paramOut;
@Override
- public Orders getOrder() {
+ public IOrders getOrder() {
return this;
}
@@ -36,7 +36,7 @@
public BusinessServiceDataFlow doBuilder(String reqInfo, Map<String, String> headerAll) throws InitDataFlowContextException {
try{
- Business business = null;
+ AppBusiness business = null;
JSONObject reqInfoObj = JSONObject.parseObject(reqInfo);
JSONObject orderObj = reqInfoObj.getJSONObject("orders");
JSONObject businessObject = reqInfoObj.getJSONObject("business");
@@ -48,8 +48,8 @@
this.setBusinessType(orderObj.getString("businessType"));
this.setbId(businessObject.getString("bId"));
paramOut = new HashMap<String, Object>();
- this.businesses = new ArrayList<Business>();
- business = new Business().builder(businessObject);
+ this.businesses = new ArrayList<AppBusiness>();
+ business = new AppBusiness().builder(businessObject);
businesses.add(business);
this.setCurrentBusiness(business);
if (headerAll != null){
@@ -57,6 +57,7 @@
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