From 9043bf6ce1652e495663fbe0a3d4b5de4da22b7e Mon Sep 17 00:00:00 2001 From: "tanfengling@x-ri.com" <123456> Date: Wed, 29 Oct 2025 15:19:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E5=88=A4=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lc123/cloud/app/plugin/trd/FWImpl.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lc123/cloud/app/plugin/trd/FWImpl.java b/lc123/cloud/app/plugin/trd/FWImpl.java index f1351ca..e1cbd8b 100644 --- a/lc123/cloud/app/plugin/trd/FWImpl.java +++ b/lc123/cloud/app/plugin/trd/FWImpl.java @@ -1272,8 +1272,11 @@ public class FWImpl { } BigDecimal qhje = bill.getBigDecimal("tqq9_qhje"); + String yjdhsj = null; Date tqq9_qhrq = bill.getDate("tqq9_qhrq"); - String yjdhsj = sdf.format(tqq9_qhrq); + if(tqq9_qhrq != null){ + yjdhsj = sdf.format(tqq9_qhrq); + } String cc3gyxlbhyy = bill.getString("tqq9_rccsgyxlbh"); String skgys = null; @@ -1304,7 +1307,9 @@ public class FWImpl { wlyh = e_bebank.getString("name"); } Date e_expaydate = entry.getDate("e_expaydate"); - qwfkr = sdf.format(e_expaydate); + if(e_expaydate != null){ + qwfkr = sdf.format(e_expaydate); + } DynamicObject e_settlementtype = entry.getDynamicObject("e_settlementtype"); if(e_settlementtype != null){ String number = e_settlementtype.getString("number"); @@ -1321,7 +1326,9 @@ public class FWImpl { } } Date e_duedate = entry.getDate("e_duedate"); - dqr = sdf.format(e_duedate); + if(e_duedate !=null){ + dqr = sdf.format(e_duedate); + } JSONObject e1 = new JSONObject(); e1.put("fieldName", "cgddh");