提交内容:API映射公共单据—收款处理

备注:BIP银行对账单字段对应
提交人:邹江涛
This commit is contained in:
zoujiangtao 2024-12-05 17:32:04 +08:00
parent eef0abbe14
commit 1f7e1b57b8
1 changed files with 34 additions and 3 deletions

View File

@ -77,9 +77,10 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
logger.info("获取收款处理推送对象 → billObject{}", billObject);
break;
// 银企交易明细查询
case "aqap_bank_acnt_detail":
DynamicObject[] objects3 = BusinessDataServiceHelper.load("aqap_bank_acnt_detail",
""
case "bei_transdetail_cas":
DynamicObject[] objects3 = BusinessDataServiceHelper.load("bei_transdetail_cas",
"id,bizdate,oppbank,oppunit,accountbank,description,oppbank,company,oppbanknumber," +
"bankdetailno,transbalance,description,debitamount,creditamount"
, new QFilter("billno", QCP.equals, billNumber).toArray());
billObject = objects3[0];
logger.info("获取银企交易明细查询推送对象 → billObject{}", billObject);
@ -146,6 +147,16 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
value = "4";
break;
}
} else if ("debitamount".equals(parts[0])) {
// 付款金额
BigDecimal debitamount = billObject.getBigDecimal("debitamount");
// 收款金额
BigDecimal creditamount = billObject.getBigDecimal("creditamount");
if (debitamount.compareTo(BigDecimal.ZERO) != 0) {
value = billObject.get("debitamount");
} else {
value = billObject.get("creditamount");
}
} else {
value = billObject.get(parts[0]);
}
@ -297,6 +308,16 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
value = "4";
break;
}
} else if ("debitamount".equals(parts[0])) {
// 付款金额
BigDecimal debitamount = dynamic.getBigDecimal("debitamount");
// 收款金额
BigDecimal creditamount = dynamic.getBigDecimal("creditamount");
if (debitamount.compareTo(BigDecimal.ZERO) != 0) {
value = dynamic.get("debitamount");
} else {
value = dynamic.get("creditamount");
}
} else {
value = dynamic.get(parts[0]);
}
@ -385,6 +406,16 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
value = "4";
break;
}
} else if ("debitamount".equals(parts[0])) {
// 付款金额
BigDecimal debitamount = dynamic.getBigDecimal("debitamount");
// 收款金额
BigDecimal creditamount = dynamic.getBigDecimal("creditamount");
if (debitamount.compareTo(BigDecimal.ZERO) != 0) {
value = dynamic.get("debitamount");
} else {
value = dynamic.get("creditamount");
}
} else {
value = dynamic.get(parts[0]);
}