业务申请,修改申请人信息页面校验方法

This commit is contained in:
user 2018-07-02 18:47:34 +08:00
parent 4f8d43d7d1
commit b04bc56cd4

View File

@ -20,14 +20,14 @@ public class CustomerInfoCheck {
public String checkName(JBOTransaction tx) throws JBOException{
if(customerType.equals("03")){//×ÔÈ»ÈË
BizObject fullname = JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"FULLNAME=:CustomerName").setParameter("CustomerName", this.CustomerName).getSingleResult(false);
BizObject fullname = JBOFactory.createBizObjectQuery(CUSTOMER_PERSON.CLASS_NAME,"FULLNAME=:CustomerName").setParameter("CustomerName", this.CustomerName).getSingleResult(false);
if(fullname==null){
this.nameResult = "1";
}else{
this.nameResult = "2";
}
}else if(customerType.equals("01")){//·¨ÈË
BizObject enterprisename = JBOFactory.createBizObjectQuery(CUSTOMER_COMPANY_TEMP.CLASS_NAME,"enterprisename=:CustomerName").setParameter("CustomerName", this.CustomerName).getSingleResult(false);
BizObject enterprisename = JBOFactory.createBizObjectQuery(CUSTOMER_COMPANY.CLASS_NAME,"enterprisename=:CustomerName").setParameter("CustomerName", this.CustomerName).getSingleResult(false);
if(enterprisename==null){
this.nameResult = "1";
}else{
@ -39,14 +39,14 @@ public class CustomerInfoCheck {
public String checkCertId(JBOTransaction tx) throws JBOException{
if(customerType.equals("03")){//×ÔÈ»ÈË
BizObject cert=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"CERTID=:certid").setParameter("certid", this.certId).getSingleResult(false);
BizObject cert=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON.CLASS_NAME,"CERTID=:certid").setParameter("certid", this.certId).getSingleResult(false);
if(cert==null){
this.certResult = "3";
}else{
this.certResult = "4";
}
}else if(customerType.equals("01")){//·¨ÈË
BizObject cert=JBOFactory.createBizObjectQuery(CUSTOMER_COMPANY_TEMP.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);
if(cert==null){
this.certResult = "3";
}else{