提交内容:接口调整,编码传统一社会信用代码

备注:接口调整,编码传统一社会信用代码
提交人:邹江涛
This commit is contained in:
zoujiangtao 2024-12-26 14:50:08 +08:00
parent 9ef0b232e6
commit b68a70e36d
1 changed files with 6 additions and 2 deletions

View File

@ -77,7 +77,9 @@ public class PayBillApiSavePlugin implements ApiSavePlugin {
if ("bd_supplier".equals(payeetype) || "bd_customer".equals(payeetype)) { if ("bd_supplier".equals(payeetype) || "bd_customer".equals(payeetype)) {
DynamicObject[] objects = BusinessDataServiceHelper.load(payeetype.toString(), "id,number,name,societycreditcode", new QFilter("societycreditcode", QCP.equals, map.get("payeenumber").toString()).toArray()); DynamicObject[] objects = BusinessDataServiceHelper.load(payeetype.toString(), "id,number,name,societycreditcode", new QFilter("societycreditcode", QCP.equals, map.get("payeenumber").toString()).toArray());
map.put("payeenumber", objects[0].getString("number")); if (objects.length > 0) {
map.put("payeenumber", objects[0].getString("number"));
}
//收款人编码 //收款人编码
objectNumber = objects[0].getString("number"); objectNumber = objects[0].getString("number");
} else { } else {
@ -142,7 +144,9 @@ public class PayBillApiSavePlugin implements ApiSavePlugin {
if ("bd_supplier".equals(payertype) || "bd_customer".equals(payertype)) { if ("bd_supplier".equals(payertype) || "bd_customer".equals(payertype)) {
DynamicObject[] objects = BusinessDataServiceHelper.load(payertype.toString(), "id,number,name,societycreditcode", new QFilter("societycreditcode", QCP.equals, map.get("payernumber").toString()).toArray()); DynamicObject[] objects = BusinessDataServiceHelper.load(payertype.toString(), "id,number,name,societycreditcode", new QFilter("societycreditcode", QCP.equals, map.get("payernumber").toString()).toArray());
map.put("payernumber", objects[0].getString("number")); if (objects.length > 0) {
map.put("payernumber", objects[0].getString("number"));
}
//收款人编码 //收款人编码
objectNumber = objects[0].getString("number"); objectNumber = objects[0].getString("number");
} else { } else {