Yongsheng.F,根据身份证号查询客户编号,新增客户类型可能为Ent02

This commit is contained in:
fengys 2018-06-24 14:15:48 +08:00
parent d4c674dcff
commit 7c50bb32c3

View File

@ -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();
}
}