添加非空判断

This commit is contained in:
yjf 2022-09-15 16:31:00 +08:00
parent 5652e825b8
commit ef996081ef

View File

@ -2,12 +2,9 @@ package com.tenwa.lease.flow.contract.commbusiness;
import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.ASResultSet;
import com.amarsoft.awe.util.SqlObject; import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction; import com.amarsoft.awe.util.Transaction;
import com.amarsoft.context.ASUser;
import com.tenwa.flow.baseBussion.BaseBussiness; import com.tenwa.flow.baseBussion.BaseBussiness;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO; import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
public class LBInitContractStatusBusiness extends BaseBussiness { public class LBInitContractStatusBusiness extends BaseBussiness {
@ -17,7 +14,7 @@ public class LBInitContractStatusBusiness extends BaseBussiness {
this.initBussinessParam(Sqlca); this.initBussinessParam(Sqlca);
String flowname=(String)this.getAttribute("FlowName"); String flowname=(String)this.getAttribute("FlowName");
String contractId=this.getAttribute("ContractId").toString(); String contractId=this.getAttribute("ContractId").toString();
String settletype=this.getAttribute("settletype").toString(); String settletype = this.getAttribute("settletype") == null ? null : this.getAttribute("settletype").toString();
String contractStatus=this.getAttribute("ContractStatus").toString(); String contractStatus=this.getAttribute("ContractStatus").toString();
String FlowUnid=this.getAttribute("FlowUnid").toString(); String FlowUnid=this.getAttribute("FlowUnid").toString();
BizObjectManager bom=JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME); BizObjectManager bom=JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME);