diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java index 04a960f86..446c9dd98 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java @@ -50,30 +50,14 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { bmLCI.setAttributeValue("VERSIONID", this.getAttribute("versionid")); boCRT.setAttributeValue("flowunid", this.getAttribute("FlowUnid")); - //根据身份证号判断是否存在该客户,如果有,则带出客户编号 - String certId = this.getAttribute("certid").toString(); - BizObject bmbo = bmCPT.createQuery("certid=:certid").setParameter("certid", certId).getSingleResult(false); - if(bmbo != null){ - customerId = bmbo.getAttribute("CUSTOMERID").toString(); - String customerName = bmbo.getAttribute("FULLNAME").toString(); - boCRT.setAttributeValue("customerid", customerId); - boCRT.setAttributeValue("InputOrgID", asUser.getOrgID()); - boCRT.setAttributeValue("InputUserID", asUser.getUserID()); - boCRT.setAttributeValue("InputTime", StringFunction.getToday()); - boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype")); - boCRT.setAttributeValue("CERTID", certId); - boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname")); - boCRT.setAttributeValue("BALANCESHEET", "申请人"); - }else{ - boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname")); - boCRT.setAttributeValue("customerid", customerId); - boCRT.setAttributeValue("InputOrgID", asUser.getOrgID()); - boCRT.setAttributeValue("InputUserID", asUser.getUserID()); - boCRT.setAttributeValue("InputTime", StringFunction.getToday()); - boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype")); - boCRT.setAttributeValue("CERTID", this.getAttribute("certid")); - boCRT.setAttributeValue("BALANCESHEET", "申请人"); - } + boCRT.setAttributeValue("customerid", customerId); + boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname")); + boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype")); + boCRT.setAttributeValue("CERTID", this.getAttribute("certid")); + boCRT.setAttributeValue("InputOrgID", asUser.getOrgID()); + boCRT.setAttributeValue("InputUserID", asUser.getUserID()); + boCRT.setAttributeValue("InputTime", StringFunction.getToday()); + boCRT.setAttributeValue("BALANCESHEET", "申请人"); //根据客户类型设置参数 String certType = this.getAttribute("certtype").toString();