From 7c50bb32c361a8d051da7497a5803729b40e20a3 Mon Sep 17 00:00:00 2001 From: fengys Date: Sun, 24 Jun 2018 14:15:48 +0800 Subject: [PATCH] =?UTF-8?q?Yongsheng.F=EF=BC=8C=E6=A0=B9=E6=8D=AE=E8=BA=AB?= =?UTF-8?q?=E4=BB=BD=E8=AF=81=E5=8F=B7=E6=9F=A5=E8=AF=A2=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=8F=AF=E8=83=BD=E4=B8=BAEnt02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/awe/execute/method/BusinessCustomerMethod.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src_app_fresh/apx/com/amarsoft/als/base/awe/execute/method/BusinessCustomerMethod.java b/src_app_fresh/apx/com/amarsoft/als/base/awe/execute/method/BusinessCustomerMethod.java index 418178376..d58bcf3a1 100644 --- a/src_app_fresh/apx/com/amarsoft/als/base/awe/execute/method/BusinessCustomerMethod.java +++ b/src_app_fresh/apx/com/amarsoft/als/base/awe/execute/method/BusinessCustomerMethod.java @@ -16,9 +16,12 @@ public class BusinessCustomerMethod { .getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME); BizObject bo = bom.createQuery("certid=:certid and certtype='Ind01'") .setParameter("certid", certId).getSingleResult(false); - String customerid = bo.getAttribute("customerid").toString(); - if (null == bo) - return ""; + if (null == bo) { + bo = bom.createQuery("certid=:certid and certtype='Ent02'") + .setParameter("certid", certId).getSingleResult(false); + if(null == bo) + return ""; + } return bo.getAttribute("customerid").toString(); } }