From 7d5b6ccf101613ca1564d8ce870b7acdd235cdcd Mon Sep 17 00:00:00 2001 From: zzk Date: Tue, 19 Sep 2023 13:29:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E4=BF=A1=E6=81=AF=E4=B8=AD?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=95=9E=E5=8F=A3=E6=97=B6=EF=BC=8C=E5=BA=94?= =?UTF-8?q?=E4=B8=BA0=EF=BC=8C=E4=B8=8D=E8=83=BD=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreateVoucherProcess/InsertCustomerHistoryInfo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src_core/com/tenwa/voucher/CreateVoucherProcess/InsertCustomerHistoryInfo.java b/src_core/com/tenwa/voucher/CreateVoucherProcess/InsertCustomerHistoryInfo.java index 4c15d0a36..9e3fe7726 100644 --- a/src_core/com/tenwa/voucher/CreateVoucherProcess/InsertCustomerHistoryInfo.java +++ b/src_core/com/tenwa/voucher/CreateVoucherProcess/InsertCustomerHistoryInfo.java @@ -300,6 +300,9 @@ public class InsertCustomerHistoryInfo { //客户敞口计算 Transaction sqlca = Transaction.createTransaction(tx); BigDecimal exposureMoney = LBBusinessPrimary.obtainExposureMoney(sqlca,flowunid); + if(exposureMoney==null||"".equals(exposureMoney)){ + exposureMoney = BigDecimal.valueOf(0); + } //录入客户历史信息表 String ssql = "insert into customer_history_info_temp(id,customerid,customername,certtype,certid,customertype,customer_num,flowunid,project_id,clientbuynumber,clientfinancingamount,clientclosedaccount,clientunsettled,clientvehiclepopulation,clientclosedvehicle,clientoutstandingvehicle,clientloanbalance,clientoverdueamount,jointlybuynumber,jointlyfinancingamount,jointlyclosedaccount,jointlyunsettled,jointlyveh,jointlyclosedvehicle,jointlyout,jointlyloanbalance,jointlyoverdueamount,guaranteebuynumber,guaranteefin,guaranteeclosedaccount,guaranteeunsettled,guaranteeveh,guaranteeclosedvehicle,guaranteeout,guaranteeloanbalance,guaranteeoverdueamount,exposure)"+ "VALUES(replace(uuid(),'-',''),'"+customerinfo.get(i).get("customerid")+"','"+customerinfo.get(i).get("customername")+"','"+customerinfo.get(i).get("certtype")+"','"+customerinfo.get(i).get("certid")+"','"+customerinfo.get(i).get("customertype")+"','"+customerinfo.get(i).get("customer_num")+"','"+flowunid+"','"+customerinfo.get(i).get("project_id")+"','"+gmnum+"','"+CLEAN_LEASE_MONEY+"','"+jq_number+"','"+wjq_number+"','"+carnumber+"','"+carjqnumber+"','"+carwjqnumber+"','"+czr_rent_over+"','"+czr_yqrent_over+"',"+