From ba8dbdd8595015bdd2bae4a7b49f5e7dd01c5df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A5=8E=E5=85=B4?= <2220574228@qq.com> Date: Thu, 6 Aug 2026 13:35:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81nc=E7=BB=93=E7=AE=97=E5=B8=81?= =?UTF-8?q?=E7=A7=8D;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/persistence/BillManageImpl.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mhd_bms/src/main/java/com/mhd/bms/domain/billManage/repository/persistence/BillManageImpl.java b/mhd_bms/src/main/java/com/mhd/bms/domain/billManage/repository/persistence/BillManageImpl.java index 8f5a7b64c..61c81134d 100644 --- a/mhd_bms/src/main/java/com/mhd/bms/domain/billManage/repository/persistence/BillManageImpl.java +++ b/mhd_bms/src/main/java/com/mhd/bms/domain/billManage/repository/persistence/BillManageImpl.java @@ -334,7 +334,11 @@ public class BillManageImpl extends ServiceImpl im } else { item.setScomment("业务部:应收"+appointShipper+invoiceItemName); } - item.setPk_currtype(settlementCurrencyNcCode); + if (settlementCurrencyNcCode != null && !settlementCurrencyNcCode.isEmpty()) { + item.setPk_currtype(settlementCurrencyNcCode); + } else { + item.setPk_currtype("CNY"); + } item.setPurchaseorder(""); item.setTaxrate(String.valueOf(make.getTaxRate())); item.setQuantity_de("0"); @@ -1002,7 +1006,11 @@ public class BillManageImpl extends ServiceImpl im String[] split = invoiceItem1.split(","); item.setDef29(split[0]); } - item.setPk_currtype(settlementCurrencyNcCode); + if (settlementCurrencyNcCode != null && !settlementCurrencyNcCode.isEmpty()) { + item.setPk_currtype(settlementCurrencyNcCode); + } else { + item.setPk_currtype("CNY"); + } item.setMoney_cr(String.valueOf(totalInvoiceValue)); item.setMoney_bal(String.valueOf(totalInvoiceValue)); ysitemList.add(item);