| | |
| | | } finally { |
| | | |
| | | if(responseEntity == null){ |
| | | responseEntity = new ResponseEntity<String>(dataFlow.getResJson().getString("msg"),OrderDataFlowContextFactory.hashMap2MultiValueMap(dataFlow.getResHeaders()),HttpStatus.OK); |
| | | responseEntity = new ResponseEntity<String>(dataFlow.getResJson().getJSONArray("msg").toJSONString(),OrderDataFlowContextFactory.hashMap2MultiValueMap(dataFlow.getResHeaders()),HttpStatus.OK); |
| | | } |
| | | if(dataFlow != null) { |
| | | //添加耗时 |
| | |
| | | */ |
| | | private void refreshOrderDataFlowResJson(IOrderDataFlowContext dataFlow){ |
| | | |
| | | if(dataFlow.getResJson() == null || dataFlow.getResJson().isEmpty()){ |
| | | JSONObject resJson = new JSONObject(); |
| | | resJson.put("msg","成功"); |
| | | dataFlow.setResJson(resJson); |
| | | } |
| | | // if(dataFlow.getResJson() == null || dataFlow.getResJson().isEmpty()){ |
| | | // JSONObject resJson = new JSONObject(); |
| | | // resJson.put("msg","成功"); |
| | | // dataFlow.setResJson(resJson); |
| | | // } |
| | | |
| | | } |
| | | |
| | |
| | | JSONObject responseJson = doRequestBusinessSystem(dataFlow, serviceBusiness, requestBusinessJson); |
| | | |
| | | //发布事件 |
| | | DataFlowEventPublishing.invokeBusinessBSuccess(dataFlow,business); |
| | | DataFlowEventPublishing.invokeBusinessBSuccess(dataFlow,business,responseJson); |
| | | |
| | | responseBusinesses.add(responseJson); |
| | | |