old mode 100644
new mode 100755
| | |
| | | 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.utils.constant.ResponseConstant; |
| | | import com.java110.utils.exception.InitDataFlowContextException; |
| | | import com.java110.entity.center.Business; |
| | | import org.slf4j.Logger; |
| | | import com.java110.core.log.LoggerFactory; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | |
| | | * Created by wuxw on 2018/5/18. |
| | | */ |
| | | public class BusinessServiceDataFlow extends AbstractDataFlowContext { |
| | | |
| | | |
| | | private final static Logger logger = LoggerFactory.getLogger(BusinessServiceDataFlow.class); |
| | | |
| | | |
| | | private String bId; |
| | |
| | | private Map<String,Object> paramOut; |
| | | |
| | | @Override |
| | | public Orders getOrder() { |
| | | public IOrders getOrder() { |
| | | return this; |
| | | } |
| | | |
| | |
| | | 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); |
| | |
| | | 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; |