提前结清更新投放方案状态
This commit is contained in:
parent
30a1755544
commit
ae526bfb38
@ -0,0 +1,24 @@
|
||||
package com.tenwa.lease.flow.contract.commbusiness;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_CALC_CONDITION_STATUS;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
|
||||
public class LBCalcContractStatusBusiness extends BaseBussiness {
|
||||
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String contractId=this.getAttribute("ContractId").toString();
|
||||
String contractStatus=this.getAttribute("ContractStatus").toString();
|
||||
String payment_number=this.getAttribute("payment_number").toString();
|
||||
BizObjectManager bom=JBOFactory.getBizObjectManager(LC_CALC_CONDITION_STATUS.CLASS_NAME);
|
||||
Sqlca.join(bom);
|
||||
bom.createQuery("update O set plan_status=:contractstatus where CONTRACT_ID=:contractid and PAYMENT_NUMBER=:paymentnumber").setParameter("contractstatus", contractStatus).setParameter("contractid",contractId).setParameter("paymentnumber",payment_number).executeUpdate();
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user