From c06b2051b76d48ba4cf51900d20725bdeeb327bf Mon Sep 17 00:00:00 2001 From: tangfutang Date: Wed, 1 Aug 2018 19:05:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=95=E4=BA=BA=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=94=9F=E6=88=90=E5=90=88=E5=90=8C=E5=90=8Eword?= =?UTF-8?q?=E8=BD=ACpdf=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../channelportal/action/ContractSignAction.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/com/tenwa/channelportal/action/ContractSignAction.java b/src/com/tenwa/channelportal/action/ContractSignAction.java index 69cc2a0ce..5d9cdd23f 100644 --- a/src/com/tenwa/channelportal/action/ContractSignAction.java +++ b/src/com/tenwa/channelportal/action/ContractSignAction.java @@ -1384,9 +1384,15 @@ public void wordToPdfJar(JBOTransaction tx){ BizObjectManager customer = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME); BizObject lults = lult.createQuery("flowunid=:flowUnid").setParameter("flowUnid", FlowUnid).getSingleResult(false); BizObject cust = customer.createQuery("flowunid=:flowUnid and customerid=:customerid").setParameter("flowUnid", FlowUnid).setParameter("customerid", lults.getAttribute("customer_id").toString()).getSingleResult(false); - String customername = cust.getAttribute("FULLNAME").toString(); - String telephone = cust.getAttribute("mobile").toString(); - String ids = cust.getAttribute("CUSTOMERID").toString(); + String customername = null; + String telephone = null; + String ids =null; + + if(cust!=null){ + customername = cust.getAttribute("FULLNAME").toString(); + telephone = cust.getAttribute("mobile").toString(); + ids = cust.getAttribute("CUSTOMERID").toString(); + } BizObjectManager contBom = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, tx); BizObjectManager attrBom = JBOFactory.getBizObjectManager(LB_DOCATTRIBUTE.CLASS_NAME, tx);