parent
f238847fc4
commit
eeeae913da
|
@ -23,11 +23,12 @@ public interface INingboBankPluginService {
|
|||
void payRequest(List<HashMap<String, Object>> hashMaps,String pluginId,String apiCode,String interId);
|
||||
/**
|
||||
* 调用宁波银行esb接口
|
||||
* @param params
|
||||
* @param apiCode
|
||||
* @param params 参数
|
||||
* @param apiCode 接口编码
|
||||
* @param appId 应用id
|
||||
* @return
|
||||
*/
|
||||
String executeEsb(String params,String apiCode);
|
||||
String executeEsb(String params,String apiCode,String appId);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -97,7 +97,7 @@ private IFormmain0044Service formmain0044Service;
|
|||
param = main.toString();
|
||||
}
|
||||
logger.info("获取到付款单的数据:{}",main.toString());
|
||||
String result = this.executeEsb(param,apiCode);
|
||||
String result = this.executeEsb(param,apiCode,"800036");
|
||||
logger.info("推送宁波银行的返回结果:{}",result);
|
||||
IntegrationTaskLivingDetailsEntity logDetails = new IntegrationTaskLivingDetailsEntity();
|
||||
logDetails.setRootAppPk(main.getString("id"));
|
||||
|
@ -191,7 +191,7 @@ private IFormmain0044Service formmain0044Service;
|
|||
logger.info("获取到付款单状态的数据"+main.toString());
|
||||
JSONObject reMain = new JSONObject();
|
||||
reMain.put("serialNo",main.getString("serialNo"));
|
||||
String result = this.executeEsb(reMain.toString(),apiCode);
|
||||
String result = this.executeEsb(reMain.toString(),apiCode,"800036");
|
||||
logger.info("获取付款状态结果"+result);
|
||||
|
||||
JSONObject resultObj = JSON.parseObject(result);
|
||||
|
@ -258,13 +258,14 @@ private IFormmain0044Service formmain0044Service;
|
|||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String executeEsb(String params, String apiCode) {
|
||||
public String executeEsb(String params, String apiCode,String appId) {
|
||||
logger.info("请求apiCode:{},参数:{}",apiCode,params);
|
||||
Map<String, String> header = MapBuilder.<String, String>create(true)
|
||||
.put("apiCode", apiCode)
|
||||
.put("publicKey","ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj")
|
||||
.put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||
.put("appId","800036")
|
||||
//.put("appId","800036")
|
||||
.put("appId",appId)
|
||||
.build();
|
||||
String res = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(header).body(params).timeout(60000).execute().body();
|
||||
return res;
|
||||
|
@ -366,7 +367,7 @@ private IFormmain0044Service formmain0044Service;
|
|||
param.put("fileName",fileName);
|
||||
param.put("bytes",bytes);
|
||||
param.put("channelNo","open-filegateway");
|
||||
String res = executeEsb(param.toString(), "8000360008");
|
||||
String res = executeEsb(param.toString(), "8000360008","800036");
|
||||
JsonResultEntity jsonResultEntity = JSONObject.parseObject(res, JsonResultEntity.class);
|
||||
if (null != jsonResultEntity && jsonResultEntity.isFlag()){
|
||||
JSONObject attribute = JSONObject.parseObject(String.valueOf(jsonResultEntity.getAttribute()));
|
||||
|
@ -398,10 +399,11 @@ private IFormmain0044Service formmain0044Service;
|
|||
billObj.put("operatorid","yonyou02");
|
||||
billObj.put("result","0");
|
||||
JSONArray bills = new JSONArray();
|
||||
bills.add(bills);
|
||||
bills.add(billObj);
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("bills",bills);
|
||||
String s = executeEsb(param.toString(), "8000350044");
|
||||
String s = executeEsb(param.toString(), "8000350044","800035");
|
||||
System.out.println("调用U8C付款单审批返回参数"+s);
|
||||
logger.info("调用U8C付款单审批返回参数:{}",s);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue