手机号、身份证重复标红
This commit is contained in:
parent
9d1ec53d22
commit
ba972c9f71
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user