删除后同步修改BIP的开票申请存的NCC信息-接口地址调整

This commit is contained in:
mzr 2025-04-09 14:06:20 +08:00
parent debbb2cc57
commit b1a4b60b79
1 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class SyncBipBillRuleForDelete implements IRule<SaleInvoiceVO> {
private String appSecret = "";
private String baseUrl = "https://www.tkkfbip.com";
private String tokenUrl = "/iuap-api-auth/open-auth/selfAppAuth/getAccessToken";
private String toBipUrl = "/iuap-api-gateway/oxp4h3x6/current_yonbip_default_sys/KKAPI/invoiceApplication/updateInvoice?access_token=";
private String toBipUrl = "";
@Override
public void process(SaleInvoiceVO[] vos) {
@ -58,6 +58,7 @@ public class SyncBipBillRuleForDelete implements IRule<SaleInvoiceVO> {
baseUrl = bipParamMap.get("baseUrl");
appKey = bipParamMap.get("appKey");
appSecret = bipParamMap.get("appSecret");
toBipUrl = bipParamMap.get("updateInvoice");
NCCForUAPLogger.debug(String.format("SyncBipBillRuleForDelete-baseUrl = [%s],appKey1 = [%s],appSecret = [%s],",
baseUrl, appKey, appSecret));
String access_token = getAccessToken();
@ -85,7 +86,8 @@ public class SyncBipBillRuleForDelete implements IRule<SaleInvoiceVO> {
updateJson.put("id", vdef38);
updateJson.put("saleInvoiceId", "");
updateJson.put("contractInvoiceApplicationDetailList", childrenList);
String bipRes = doPost(baseUrl + toBipUrl + access_token, updateJson);
String url = baseUrl + toBipUrl + "?access_token=" + access_token;
String bipRes = doPost(url, updateJson);
NCCForUAPLogger.debug("SyncBipBillRuleForDelete-bipRes = " + bipRes);
}
}