From ae526bfb382488853bcfa52d95402c9f17a3b68a Mon Sep 17 00:00:00 2001 From: tangft <32189@DESKTOP-M6TAG3K> Date: Tue, 22 Jan 2019 12:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=89=8D=E7=BB=93=E6=B8=85=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=8A=95=E6=94=BE=E6=96=B9=E6=A1=88=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LBCalcContractStatusBusiness.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src_tenwa/com/tenwa/lease/flow/contract/commbusiness/LBCalcContractStatusBusiness.java diff --git a/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/LBCalcContractStatusBusiness.java b/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/LBCalcContractStatusBusiness.java new file mode 100644 index 000000000..b76fc1c41 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/LBCalcContractStatusBusiness.java @@ -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; + } +}