1.是否为空公共类
This commit is contained in:
parent
55c454b2f3
commit
9b3328c47e
@ -0,0 +1,32 @@
|
||||
package com.tenwa.flow.lease.check.contract;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_EBANK;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
|
||||
public class IsNullCheck {
|
||||
private String EBANK_SN;
|
||||
|
||||
public String getEBANK_SN() {
|
||||
return EBANK_SN;
|
||||
}
|
||||
|
||||
public void setEBANK_SN(String eBANK_SN) {
|
||||
EBANK_SN = eBANK_SN;
|
||||
}
|
||||
|
||||
public String CustomerIdIsNullCheck() throws JBOException{
|
||||
BizObject bo=JBOFactory.createBizObjectQuery(LC_EBANK.CLASS_NAME, "EBANK_SN='"+EBANK_SN+"'").getSingleResult(false);
|
||||
if(bo!=null&&bo.getAttribute("CUSTOMER_ID")!=null){
|
||||
String customerId = bo.getAttribute("CUSTOMER_ID").toString();
|
||||
if(customerId==null||"".equals(customerId)){
|
||||
return "Y";
|
||||
}else{
|
||||
return "N";
|
||||
}
|
||||
}
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user