diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp index ef77d9d14..71fd06e43 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp @@ -265,13 +265,13 @@ }) function checkMobileAll(mobile){//检验所有手机号 - var sParams = "mobile="+mobile; + var sParams = "mobile="+mobile+",flowunid="+"<%=flowunid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams); return sReturnInfo; } function checkCertIdAll(){//校验证件号 var certId = getItemValue(0,getRow(),"CERTID"); - var sParams = "certId="+certId; + var sParams = "certId="+certId+",flowunid="+"<%=flowunid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams); return sReturnInfo; } diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp index 42eb76341..e32fd29d5 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp @@ -347,13 +347,13 @@ } function checkMobileAll(mobile){//检验所有手机号 - var sParams = "mobile="+mobile; + var sParams = "mobile="+mobile+",flowunid="+"<%=flowunid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams); return sReturnInfo; } function checkCertIdAll(){//校验证件号 var certId = getItemValue(0,getRow(),"CERTID"); - var sParams = "certId="+certId; + var sParams = "certId="+certId+",flowunid="+"<%=flowunid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams); return sReturnInfo; } diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp index 96b257d1d..672e50927 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp @@ -359,13 +359,13 @@ } function checkMobileAll(mobile){//检验所有手机号 - var sParams = "mobile="+mobile; + var sParams = "mobile="+mobile+",flowunid="+"<%=flowunid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams); return sReturnInfo; } function checkCertIdAll(){//校验证件号 var certId = getItemValue(0,getRow(),"CERTID"); - var sParams = "certId="+certId; + var sParams = "certId="+certId+",flowunid="+"<%=flowunid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams); return sReturnInfo; } diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp index 8a227732e..007117133 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp @@ -867,14 +867,14 @@ } function checkMobileAll(mobile){//检验所有手机号 - var sParams = "mobile="+mobile; + var sParams = "mobile="+mobile+",flowunid="+"<%=flowunid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams); return sReturnInfo; } function checkCertIdAll(){//校验证件号 var certId = getItemValue(0,getRow(),"CERTID"); - var sParams = "certId="+certId; + var sParams = "certId="+certId+",flowunid="+"<%=flowunid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams); return sReturnInfo; } diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java index 3d703a7f5..af57440f6 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java @@ -409,9 +409,9 @@ public class CustomerInfoCheck { public String checkTel(JBOTransaction tx) throws JBOException{//校验手机是否存在 String msg = ""; //校验承租人,紧急联系人1和2 - BizObject mobile=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON.CLASS_NAME,"mobile=:mobile or EMERGENCY_CONTACT_TEL=:mobileOne or REMARK=:mobileTwo").setParameter("mobile", this.mobile).setParameter("mobileOne", this.mobile).setParameter("mobileTwo", this.mobile).getSingleResult(false); - BizObject family=JBOFactory.createBizObjectQuery(CUSTOMER_FAMILY.CLASS_NAME,"TEL=:mobile ").setParameter("mobile", this.mobile).getSingleResult(false); - BizObject guarantee=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT.CLASS_NAME,"MOBILE=:mobile ").setParameter("mobile", this.mobile).getSingleResult(false); + BizObject mobile=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"select * FROM O,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo where O.flowunid=fbo.flow_unid and fbo.flow_name='业务申请流程' and O.flowunid<>:flowunid and (O.mobile=:mobile or O.EMERGENCY_CONTACT_TEL=:mobileOne or O.REMARK=:mobileTwo) ").setParameter("flowunid", flowunid).setParameter("mobile", this.mobile).setParameter("mobileOne", this.mobile).setParameter("mobileTwo", this.mobile).getSingleResult(false); + BizObject family=JBOFactory.createBizObjectQuery(CUSTOMER_FAMILY_TEMP.CLASS_NAME,"select * from O,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo where O.flowunid=fbo.flow_unid and fbo.flow_name='业务申请流程' and O.flowunid<>:flowunid and TEL=:mobile ").setParameter("flowunid", flowunid).setParameter("mobile", this.mobile).getSingleResult(false); + BizObject guarantee=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME,"select * from O,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo where O.flowunid=fbo.flow_unid and fbo.flow_name='业务申请流程' and O.flowunid<>:flowunid and MOBILE=:mobile ").setParameter("flowunid", flowunid).setParameter("mobile", this.mobile).getSingleResult(false); if(mobile==null&&family==null&&guarantee==null){ msg = "5"; }else{ @@ -422,10 +422,10 @@ public class CustomerInfoCheck { //校验所有的身份证号重复 public String checkCertIdAll(JBOTransaction tx) throws JBOException{//校验手机是否存在 String msg = ""; - BizObject mobile=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON.CLASS_NAME,"CERTID=:certId ").setParameter("certId", this.certId).getSingleResult(false); - BizObject cert=JBOFactory.createBizObjectQuery(CUSTOMER_COMPANY.CLASS_NAME,"certid=:certid").setParameter("certid", this.certId).getSingleResult(false); - BizObject family=JBOFactory.createBizObjectQuery(CUSTOMER_FAMILY.CLASS_NAME,"CERTID=:certId ").setParameter("certId", this.certId).getSingleResult(false); - BizObject guarantee=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT.CLASS_NAME,"CERTID=:certId ").setParameter("certId", this.certId).getSingleResult(false); + BizObject mobile=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"select * from O,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo where O.flowunid=fbo.flow_unid and fbo.flow_name='业务申请流程' and O.flowunid<>:flowunid and CERTID=:certId ").setParameter("flowunid", flowunid).setParameter("certId", this.certId).getSingleResult(false); + BizObject cert=JBOFactory.createBizObjectQuery(CUSTOMER_COMPANY_TEMP.CLASS_NAME,"select * from O,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo where O.flowunid=fbo.flow_unid and fbo.flow_name='业务申请流程' and O.flowunid<>:flowunid and certid=:certid").setParameter("flowunid", flowunid).setParameter("certid", this.certId).getSingleResult(false); + BizObject family=JBOFactory.createBizObjectQuery(CUSTOMER_FAMILY_TEMP.CLASS_NAME,"select * from O,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo where O.flowunid=fbo.flow_unid and fbo.flow_name='业务申请流程' and O.flowunid<>:flowunid and CERTID=:certId ").setParameter("flowunid", flowunid).setParameter("certId", this.certId).getSingleResult(false); + BizObject guarantee=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME,"select * from O,jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo where O.flowunid=fbo.flow_unid and fbo.flow_name='业务申请流程' and O.flowunid<>:flowunid and CERTID=:certId ").setParameter("flowunid", flowunid).setParameter("certId", this.certId).getSingleResult(false); if(mobile==null&&family==null&&guarantee==null&&cert==null){ msg = "3"; }else{