package com.tenwa.lease.app.fivegradeclassification; import jbo.app.tenwa.calc.LC_CALC_CONDITION_STATUS; import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOTransaction; public class FiveGradeClassificationController { private String contractId; private String paymentNumber; private String isAuto; public String getContractId() { return contractId; } public void setContractId(String contractId) { this.contractId = contractId; } public String getPaymentNumber() { return paymentNumber; } public void setPaymentNumber(String paymentNumber) { this.paymentNumber = paymentNumber; } public String getIsAuto() { return isAuto; } public void setIsAuto(String isAuto) { this.isAuto = isAuto; } public String changeFiveGradeAuto(JBOTransaction tx )throws Exception{ BizObjectManager lccsManager = JBOFactory.getBizObjectManager(LC_CALC_CONDITION_STATUS.CLASS_NAME); tx.join(lccsManager); lccsManager.createQuery("update o set IS_AUTO=:isauto where CONTRACT_ID=:contractid and PAYMENT_NUMBER=:paymentnumber ").setParameter("isauto",isAuto).setParameter("contractid",contractId).setParameter("paymentnumber",paymentNumber).executeUpdate(); return "success"; } }