| | |
| | | * @return |
| | | */ |
| | | public ResponseEntity<String> callService(DataFlowContext context, String serviceCode,JSONArray businesses) { |
| | | context.getRequestCurrentHeaders().put(CommonConstant.HTTP_ORDER_TYPE_CD, "D"); |
| | | JSONObject paramInObj = restToCenterProtocol(businesses, context.getRequestCurrentHeaders()); |
| | | return callService(context,serviceCode,paramInObj); |
| | | } |
| | |
| | | |
| | | //将 rest header 信息传递到下层服务中去 |
| | | HttpHeaders header = new HttpHeaders(); |
| | | |
| | | freshHttpHeader(header, context.getRequestCurrentHeaders()); |
| | | |
| | | ResponseEntity responseEntity = null; |
| | |
| | | if(CommonConstant.ORDER_PROCESS.equals(key)){ |
| | | orders.put("orderProcess", headers.get(CommonConstant.ORDER_PROCESS)); |
| | | } |
| | | |
| | | if(CommonConstant.O_ID.equals(key)){ |
| | | orders.put("oId", headers.get(CommonConstant.O_ID)); |
| | | } |
| | | } |
| | | |
| | | } |