修改人:邹江涛

修改内容:API入参出参修改
修改时间:2024/11/14
This commit is contained in:
zoujiangtao 2024-11-14 17:03:30 +08:00
parent c8809f5629
commit 53e2426579
1 changed files with 8 additions and 13 deletions

View File

@ -63,17 +63,13 @@ public class PayBillApiSavePlugin implements ApiSavePlugin, ApiSerializerPlugin
//收款人ID //收款人ID
fieldName1 = "payee"; fieldName1 = "payee";
Map<String, Object> payeebankObj = (Map<String, Object>) map.get("payeebank");
Object payeebankObj = map.get("payeebank"); bankNumber = (String) payeebankObj.get("number");
logger.info("payeebankObj{}", payeebankObj); logger.info("付款处理 → \nobjectType{}\nobjectNumber{}\nbankNumber:{}", objectType, objectNumber, bankNumber);
Map<String, Object> payeebankMap = (Map<String, Object>) payeebankObj;
logger.info("payeebankMap{}", payeebankMap);
bankNumber = (String) payeebankMap.get("number");
fieldName2 = "payerbank"; fieldName2 = "payerbank";
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(objectType, "id", new QFilter("billno", QCP.equals, objectNumber).toArray()); DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(objectType, "id,billno", new QFilter("billno", QCP.equals, objectNumber).toArray());
logger.info("objectType:{},objectNumber:{}", objectType, objectNumber); logger.info("objectNumber:{}", objectNumber);
DynamicObject amAccountbank = BusinessDataServiceHelper.loadSingle("am_accountbank", "id,bank,bank.number", new QFilter("number", QCP.equals, bankNumber).toArray()); DynamicObject amAccountbank = BusinessDataServiceHelper.loadSingle("am_accountbank", "id,bank,bank.number", new QFilter("number", QCP.equals, bankNumber).toArray());
logger.info("amAccountbank:{}", amAccountbank); logger.info("amAccountbank:{}", amAccountbank);
map.put(fieldName1, dynamicObject.getString("id")); map.put(fieldName1, dynamicObject.getString("id"));
@ -90,10 +86,9 @@ public class PayBillApiSavePlugin implements ApiSavePlugin, ApiSerializerPlugin
fieldName1 = "payer"; fieldName1 = "payer";
Object accountbank = map.get("accountbank"); Map<String, Object> accountbank = (Map<String, Object>) map.get("accountbank");
Map<String, Object> accountbankMap = (Map<String, Object>) accountbank; bankNumber = (String) accountbank.get("number");
bankNumber = (String) accountbankMap.get("number"); logger.info("收款处理 → \nobjectType{}\nobjectNumber{}\nbankNumber:{}", objectType, objectNumber, bankNumber);
fieldName2 = "payeebank"; fieldName2 = "payeebank";
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(objectType, "id", new QFilter("billno", QCP.equals, objectNumber).toArray()); DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(objectType, "id", new QFilter("billno", QCP.equals, objectNumber).toArray());
logger.info("objectType:{},objectNumber:{}", objectType, objectNumber); logger.info("objectType:{},objectNumber:{}", objectType, objectNumber);