From ba7b662ce642c49fb4003cc72bbc55966b1842b1 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Mon, 12 Oct 2020 18:52:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=BD=91=E9=93=B6=E6=94=B6=E6=AC=BE=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=A6=82=E6=9E=9C=E4=BB=A3=E5=81=BF=E7=8A=B6=E6=80=81?= =?UTF-8?q?=EF=BC=8C=E9=83=A8=E5=88=86=E8=BF=98=E6=AC=BE=E4=BE=9D=E7=84=B6?= =?UTF-8?q?=E4=B8=BA=E4=BB=A3=E5=81=BF=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rent/copyrent/InsertRentPlanStatus.java | 105 +++++++++--------- 1 file changed, 53 insertions(+), 52 deletions(-) diff --git a/src_tenwa/com/tenwa/flow/rent/copyrent/InsertRentPlanStatus.java b/src_tenwa/com/tenwa/flow/rent/copyrent/InsertRentPlanStatus.java index cbfc8b99b..4ff7512bf 100644 --- a/src_tenwa/com/tenwa/flow/rent/copyrent/InsertRentPlanStatus.java +++ b/src_tenwa/com/tenwa/flow/rent/copyrent/InsertRentPlanStatus.java @@ -1,52 +1,53 @@ -package com.tenwa.flow.rent.copyrent; -import java.math.BigDecimal; -import java.util.List; - -import jbo.app.tenwa.calc.LC_RENT_INCOME; -import jbo.app.tenwa.calc.LC_RENT_INCOME_TEMP; -import jbo.app.tenwa.calc.LC_RENT_PLAN; -import jbo.com.tenwa.entity.comm.flow.D_DEPOSITCHARGE_INFO; -import jbo.com.tenwa.entity.comm.flow.D_DEPOSITRETURN_INFO; - -import com.amarsoft.are.jbo.BizObject; -import com.amarsoft.are.jbo.BizObjectManager; -import com.amarsoft.are.jbo.JBOFactory; -import com.amarsoft.are.jbo.JBOTransaction; -import com.amarsoft.awe.util.Transaction; -import com.tenwa.collectaudit.cache.CollectAuditInfoCache; -import com.tenwa.flow.baseBussion.BaseBussiness; - -public class InsertRentPlanStatus extends BaseBussiness{ - public Object run(Transaction Sqlca) throws Exception{ - this.initBussinessParam(Sqlca.getTransaction()); - String flowunid = (String)this.getAttribute("ObjectNo"); - - List boLRITs=JBOFactory.createBizObjectQuery(LC_RENT_INCOME_TEMP.CLASS_NAME,"flowunid=:flowunid").setParameter("flowunid", flowunid).getResultList(false); - BizObjectManager bomLRP = JBOFactory.getBizObjectManager(LC_RENT_PLAN.CLASS_NAME, Sqlca.getTransaction()); - - CollectAuditInfoCache calc = new CollectAuditInfoCache(); - for(int i=0;i boLRITs=JBOFactory.createBizObjectQuery(LC_RENT_INCOME_TEMP.CLASS_NAME,"flowunid=:flowunid").setParameter("flowunid", flowunid).getResultList(false); + BizObjectManager bomLRP = JBOFactory.getBizObjectManager(LC_RENT_PLAN.CLASS_NAME, Sqlca.getTransaction()); + CollectAuditInfoCache calc = new CollectAuditInfoCache(); + for(int i=0;i'代偿' or collect_status is null)") + .setParameter("CONTRACT_ID", contractId).setParameter("PLAN_LIST", planList).executeUpdate(); + }else{ + bomLRP.createQuery("update O set COLLECT_STATUS='网银收款',COLLECT_MSG='网银收款' where CONTRACT_ID=:CONTRACT_ID and PLAN_LIST=:PLAN_LIST") + .setParameter("CONTRACT_ID", contractId).setParameter("PLAN_LIST", planList).executeUpdate(); + } + } + String sMessage="true"; + return sMessage; + } +}