From c1eec7ae7e453f7abc9344729e5b64949b06fe62 Mon Sep 17 00:00:00 2001 From: xiezhiwen Date: Tue, 8 Oct 2019 15:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E8=A1=A8180=EF=BC=8C=20?= =?UTF-8?q?=E6=8B=85=E4=BF=9D=E4=BA=BA=E4=BF=A1=E6=81=AF=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E4=B8=8E=E9=85=8D=E5=81=B6=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LBGuaranteePerUnitInfo.jsp | 11 +++++--- .../CustomerFamilyTempInfo.jsp | 1 + .../businessapply/CustomerInfoCheck.java | 27 +++++++++++++++---- 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp index 05f5c3d4e..1e6d823dc 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp @@ -132,7 +132,9 @@ if(phone.test(mobile)){ var customerType = "03"; var id = getItemValue(0,getRow(),"id"); - var sParams = "certId="+id+",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>"; + var FULLNAME = getItemValue(0,getRow(),"FULLNAME"); + var certid = getItemValue(0,getRow(),"CERTID"); + var sParams = "certId="+id+",certid="+certid+",FULLNAME="+FULLNAME+",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams); if("SUCCESS"!=sReturnInfo){ //setErrorTips("tel","该手机号已重复!"); @@ -178,8 +180,10 @@ function checkMobileRepeat(){//校验担保人手机号重复 var customerType = "03"; var mobile = getItemValue(0,getRow(),"MOBILE"); + var FULLNAME = getItemValue(0,getRow(),"FULLNAME"); + var certid = getItemValue(0,getRow(),"CERTID"); var id = getItemValue(0,getRow(),"id"); - var sParams ="certId="+id+ ",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>"; + var sParams ="certid="+certid+",FULLNAME="+FULLNAME+",certId="+id+ ",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams); if(sReturnInfo=="8"){ /* alert("该手机号已重复!"); @@ -244,7 +248,8 @@ if("Ind01"==certtype){ var id = getItemValue(0,getRow(),"ID"); var certId = getItemValue(0,getRow(),"CERTID"); - var sParams ="id="+id+",certid="+certId+",flowunid=<%=sFlowUnid%>"; + var FULLNAME = getItemValue(0,getRow(),"FULLNAME"); + var sParams ="id="+id+",FULLNAME="+FULLNAME+",certid="+certId+",flowunid=<%=sFlowUnid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertidRepeat",sParams); if("success"!=sReturnInfo){ setErrorTips("CERTID",sReturnInfo); diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp index ce6469332..21a6c3202 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp @@ -256,6 +256,7 @@ if(name.length > 0){ if(certid.length > 0){ + // 因港澳台居民通行证, 临时去除配偶身份证校验 /* if(certid.length!=18){ // parent.parent.openDWDialog(); setErrorTips("certid","身份证必须是18位!"); 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 4a4963eab..ce50d8247 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java @@ -38,7 +38,16 @@ public class CustomerInfoCheck { private String certid; private String id; private String projectNo; + private String FULLNAME; + public String getFULLNAME() { + return FULLNAME; + } + + public void setFULLNAME(String fULLNAME) { + FULLNAME = fULLNAME; + } + public String getCerttype() { return certtype; } @@ -183,15 +192,19 @@ public class CustomerInfoCheck { } if(mobileFTSpouse!=null){ String id = mobileFTSpouse.getAttribute("ID").getString(); - if(!id.equals(certId)){ - //return "手机号跟配偶人手机号重复!"; + String certid1 = mobileFTSpouse.getAttribute("certid").getString();// 配偶身份证号 + String name = mobileFTSpouse.getAttribute("name").getString();// 配偶名称 + + // 判断担保人名称和身份证是否与配偶相同, 相同则过滤, 不同则提示 + if(certid1.equals(certid) && name.equals(FULLNAME)){ return "SUCCESS"; + }else{ + return "手机号跟配偶人手机号重复!"; } } } } } - // return "SUCCESS"; } @@ -266,9 +279,13 @@ public class CustomerInfoCheck { return "success"; }else if("Y".equals(cft.getAttribute("Spouse_").getString())){ BizObject cptP = cptManage.createQuery("flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); - if(cptP.getAttribute("MARRIAGE").getString().equals("01")){ - //return "该身份证已跟配偶身份证重复"; + String MARRIAGE = cptP.getAttribute("MARRIAGE").getString(); + String name1 = cft.getAttribute("name").getString(); + + if("01".equals(MARRIAGE) && name1.equals(FULLNAME)){ return "success"; + }else{ + return "该身份证已跟配偶身份证重复"; } }else{ return "该身份证已跟共同申请人身份证重复";