From 1f7e1b57b8b773a31d2f63206bba1844aefa9936 Mon Sep 17 00:00:00 2001 From: zoujiangtao Date: Thu, 5 Dec 2024 17:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=86=85=E5=AE=B9=EF=BC=9AAP?= =?UTF-8?q?I=E6=98=A0=E5=B0=84=E5=85=AC=E5=85=B1=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E2=80=94=E6=94=B6=E6=AC=BE=E5=A4=84=E7=90=86=20=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=EF=BC=9ABIP=E9=93=B6=E8=A1=8C=E5=AF=B9=E8=B4=A6?= =?UTF-8?q?=E5=8D=95=E5=AD=97=E6=AE=B5=E5=AF=B9=E5=BA=94=20=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=82=B9=E6=B1=9F=E6=B6=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/plugin/form/ApiMappingBillPlugin.java | 37 +++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java index 6d5a910..c7e3385 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java @@ -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]); }