parent
0d7be1c3ac
commit
97f57a493f
|
@ -1,6 +1,7 @@
|
|||
package com.hzya.frame.plugin.a8bill.plugin;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.map.MapBuilder;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.http.HttpRequest;
|
||||
|
@ -130,8 +131,8 @@ public class AccLogPluginInitializer extends PluginBaseEntity {
|
|||
//1、查询宁波银行的交易记录
|
||||
AccTransactionReq accTransactionReq = new AccTransactionReq();
|
||||
accTransactionReq.setCdSign(NingboBankUtil.SHOURU);
|
||||
accTransactionReq.setBeginDate("2024-07-01");
|
||||
accTransactionReq.setEndDate("2024-07-30");
|
||||
accTransactionReq.setBeginDate(DateUtil.format(DateUtil.yesterday(),"yyyy-MM-dd"));
|
||||
accTransactionReq.setEndDate(DateUtil.today());
|
||||
accTransactionReq.setBankAccList(accList);
|
||||
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
|
||||
.put("apiCode", "8000360002")
|
||||
|
@ -139,7 +140,7 @@ public class AccLogPluginInitializer extends PluginBaseEntity {
|
|||
.put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||
.put("appId","800036")
|
||||
.build();
|
||||
String body = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(headerMap).body(JSONObject.toJSONString(accTransactionReq)).timeout(60000).execute().body();
|
||||
String body = HttpRequest.post("http://127.0.0.1:8901/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(headerMap).body(JSONObject.toJSONString(accTransactionReq)).timeout(60000).execute().body();
|
||||
System.out.println(body);
|
||||
if (StrUtil.isNotEmpty(body)){
|
||||
JSONObject response = JSONObject.parseObject(body);
|
||||
|
|
|
@ -267,7 +267,7 @@ private IFormmain0044Service formmain0044Service;
|
|||
//.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(20000).execute().body();
|
||||
String res = HttpRequest.post("http://127.0.0.1:8901/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(header).body(params).timeout(50000).execute().body();
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -321,7 +321,7 @@ private IFormmain0044Service formmain0044Service;
|
|||
.put("secretKey","B8sgQwEaskwM7BQj1XLvu3kdKD3xm7Lyd4FWsPaFQk5v+UtQLCkzVzLlCZ9Bdyv2j3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
|
||||
.put("appId","800034")
|
||||
.build();
|
||||
String res = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(header).body(paramsTemplate.toString()).timeout(60000).execute().body();
|
||||
String res = HttpRequest.post("http://127.0.0.1:8901/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(header).body(paramsTemplate.toString()).timeout(60000).execute().body();
|
||||
System.out.println("保存oa底表结果:"+res);
|
||||
}
|
||||
}
|
||||
|
@ -396,7 +396,7 @@ private IFormmain0044Service formmain0044Service;
|
|||
param.put("billno",billCode);
|
||||
param.put("corpcode",dwbm);
|
||||
param.put("billType","paybill");
|
||||
param.put("userCode","yonyou02");
|
||||
param.put("userCode","hzya");
|
||||
param.put("ckeckResult","Y");
|
||||
param.put("ckeckNote","审批通过");
|
||||
String s = executeEsb(param.toString(), "8000350060","800035");
|
||||
|
|
|
@ -75,7 +75,7 @@ public class temButtom {
|
|||
@Test
|
||||
public void updateU8CTest(){
|
||||
try {
|
||||
ningboBankPluginService.updateU8CStatus("FK2408260001","002");
|
||||
ningboBankPluginService.updateU8CStatus("FK2409190002","001");
|
||||
}catch (Exception ex){
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue