1.身份证号和手机号变红逻辑更改。

This commit is contained in:
zhangbb 2019-04-17 14:03:33 +08:00
parent b425e4bb02
commit 9b85b0f378

View File

@ -410,9 +410,10 @@ public class CustomerInfoCheck {
public String checkTel(JBOTransaction tx) throws JBOException{//校验手机是否存在
String msg = "";
//校验承租人紧急联系人1和2
BizObject mobile=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"select * FROM O LEFT JOIN jbo.sys.FLOW_TASK ft ON O.flowunid=ft.objectno where ft.flowno='BusinessApplyFlow' and ft.phaseno='0030' 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 LEFT JOIN jbo.sys.FLOW_TASK ft ON O.flowunid=ft.objectno where ft.flowno='BusinessApplyFlow' and ft.phaseno='0030' 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 LEFT JOIN jbo.sys.FLOW_TASK ft ON O.flowunid=ft.objectno where ft.flowno='BusinessApplyFlow' and ft.phaseno='0030' and O.flowunid<>:flowunid and MOBILE=:mobile ").setParameter("flowunid", flowunid).setParameter("mobile", this.mobile).getSingleResult(false);
BizObject mobile=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"select * FROM O LEFT JOIN jbo.sys.FLOW_OBJECT fo ON O.flowunid=fo.objectno where O.flowunid<>:flowunid and (O.mobile=:mobile or O.EMERGENCY_CONTACT_TEL=:mobileOne or O.REMARK=:mobileTwo) AND ((fo.flowno='BusinessApplyFlow' AND fo.phaseno<> '0010' AND fo.phaseno<> '0020') OR fo.flowno<>'BusinessApplyFlow')")
.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 LEFT JOIN jbo.sys.FLOW_OBJECT fo ON O.flowunid=fo.objectno where O.flowunid<>:flowunid and TEL=:mobile AND ((fo.flowno='BusinessApplyFlow' AND fo.phaseno<> '0010' AND fo.phaseno<> '0020') OR fo.flowno<>'BusinessApplyFlow')").setParameter("flowunid", flowunid).setParameter("mobile", this.mobile).getSingleResult(false);
BizObject guarantee=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME,"select * from O LEFT JOIN jbo.sys.FLOW_OBJECT fo ON O.flowunid=fo.objectno where O.flowunid<>:flowunid and MOBILE=:mobile AND ((fo.flowno='BusinessApplyFlow' AND fo.phaseno<> '0010' AND fo.phaseno<> '0020') OR fo.flowno<>'BusinessApplyFlow')").setParameter("flowunid", flowunid).setParameter("mobile", this.mobile).getSingleResult(false);
if(mobile==null&&family==null&&guarantee==null){
msg = "5";
}else{
@ -421,12 +422,12 @@ public class CustomerInfoCheck {
return msg;
}
//校验所有的身份证号重复
public String checkCertIdAll(JBOTransaction tx) throws JBOException{//校验手机是否存在
public String checkCertIdAll(JBOTransaction tx) throws JBOException{//УÑéÉí·ÝÖ¤ÊÇ·ñ´æÔÚ
String msg = "";
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);
BizObject mobile=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"select * from O LEFT JOIN jbo.sys.FLOW_OBJECT fo ON O.flowunid=fo.objectno where O.flowunid<>:flowunid and O.CERTID=:certId AND ((fo.flowno='BusinessApplyFlow' AND fo.phaseno<> '0010' AND fo.phaseno<> '0020') OR fo.flowno<>'BusinessApplyFlow')").setParameter("flowunid", flowunid).setParameter("certId", this.certId).getSingleResult(false);
BizObject cert=JBOFactory.createBizObjectQuery(CUSTOMER_COMPANY_TEMP.CLASS_NAME,"select * from O LEFT JOIN jbo.sys.FLOW_OBJECT fo ON O.flowunid=fo.objectno where O.flowunid<>:flowunid and O.CERTID=:certid AND ((fo.flowno='BusinessApplyFlow' AND fo.phaseno<> '0010' AND fo.phaseno<> '0020') OR fo.flowno<>'BusinessApplyFlow')").setParameter("flowunid", flowunid).setParameter("certid", this.certId).getSingleResult(false);
BizObject family=JBOFactory.createBizObjectQuery(CUSTOMER_FAMILY_TEMP.CLASS_NAME,"select * from O LEFT JOIN jbo.sys.FLOW_OBJECT fo ON O.flowunid=fo.objectno where O.flowunid<>:flowunid and O.CERTID=:certId AND ((fo.flowno='BusinessApplyFlow' AND fo.phaseno<> '0010' AND fo.phaseno<> '0020') OR fo.flowno<>'BusinessApplyFlow')").setParameter("flowunid", flowunid).setParameter("certId", this.certId).getSingleResult(false);
BizObject guarantee=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME,"select * from O LEFT JOIN jbo.sys.FLOW_OBJECT fo ON O.flowunid=fo.objectno where O.flowunid<>:flowunid and O.CERTID=:certId AND ((fo.flowno='BusinessApplyFlow' AND fo.phaseno<> '0010' AND fo.phaseno<> '0020') OR fo.flowno<>'BusinessApplyFlow')").setParameter("flowunid", flowunid).setParameter("certId", this.certId).getSingleResult(false);
if(mobile==null&&family==null&&guarantee==null&&cert==null){
msg = "3";
}else{