diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/AdvanceSettleChangRent.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/AdvanceSettleChangRent.java index ead92d51f..5114ffeec 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/AdvanceSettleChangRent.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/AdvanceSettleChangRent.java @@ -10,18 +10,16 @@ import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.awe.util.ASResultSet; import com.amarsoft.awe.util.SqlObject; import com.amarsoft.awe.util.Transaction; +import com.amarsoft.context.ASUser; import com.tenwa.flow.baseBussion.BaseBussiness; public class AdvanceSettleChangRent extends BaseBussiness{ @Override public Object run(Transaction tx) throws Exception { - BizObjectManager tableEquip = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME); - tx.join(tableEquip); - BizObjectQuery bqDest = tableEquip.createQuery("flow_unid=:flowunid"); - bqDest.setParameter("flowunid", this.getAttribute("ObjectNo").toString()); - BizObject flowBussinessObject = bqDest.getSingleResult(true);// 目标JBO,需要做更新操作 - String SQL="{call proc_terminate_bill_income('"+flowBussinessObject.getAttribute("Contract_id").getString()+"','"+flowBussinessObject.getAttribute("Proj_id").getString()+"','"+null+"','')} "; + this.initBussinessParam(tx.getTransaction()); + ASUser CurUser = ASUser.getUser(this.getAttribute("CurUserID").toString(), tx); //当前用户对象 + String SQL="{call proc_terminate_bill_income('"+this.getAttribute("ContractId").toString()+"','"+this.getAttribute("ObjectNo").toString()+"','"+this.getAttribute("CurUserID").toString()+"','"+CurUser.getOrgID()+"')} "; SqlObject asql = new SqlObject(SQL); ASResultSet rs = null; rs = tx.getASResultSet(asql);