From 1cfb6724c1b9cc722495d78484e0da95b7b8866f Mon Sep 17 00:00:00 2001 From: zhangbb Date: Thu, 29 Aug 2019 10:59:05 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=A0=E7=BB=9F=E4=B8=80=E4=B8=AA=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=88=86=E5=A4=9A=E4=B8=AA=E5=90=88=E5=90=8C=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E9=87=91=E9=A2=9D=E5=AF=B9=E6=AF=94=E5=8F=82=E7=85=A7?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=80=E8=88=AC=E7=A7=9F=E8=B5=81=E7=89=A9?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E4=BB=B7=E6=A0=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tenwa/reckon/executor/CreateTransactionExecutor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java b/calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java index 37ae9a0e0..2e68f4ecd 100644 --- a/calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java +++ b/calc/com/tenwa/reckon/executor/CreateTransactionExecutor.java @@ -29,6 +29,7 @@ import jbo.app.tenwa.calc.LC_FUND_RENT_ADJUST_TEMP; import jbo.app.tenwa.calc.LC_RENT_PLAN; import jbo.app.tenwa.calc.LC_RENT_PLAN_TEMP; import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT; +import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_TEMP; import jbo.com.tenwa.lease.comm.LC_OCCUPY_RENT_LIST; import jbo.com.tenwa.lease.comm.LC_PAY_CONDTION_TEMP; import jbo.sys.CODE_LIBRARY; @@ -1130,14 +1131,15 @@ public class CreateTransactionExecutor implements Transaction { public String checkMoney()throws Exception{ double sumMoney = 0.0; BizObjectManager lcctManage = JBOFactory.getBizObjectManager(LC_CALC_CONDITION_TEMP.CLASS_NAME); + BizObjectManager letManage = JBOFactory.getBizObjectManager(LB_EQUIPMENT_TEMP.CLASS_NAME); List lccts = lcctManage.createQuery(" project_id=:projectid and flowunid<>:flowunid and contract_plan_number<>'' ").setParameter("projectid", projectId).setParameter("flowunid", flowunid).getResultList(false); for (BizObject lcct : lccts) { lcct.getAttribute("EQUIP_AMT").getString(); double equip_money = new Double(lcct.getAttribute("EQUIP_AMT").getString()); sumMoney = sumMoney+equip_money; } - BizObject lcctm = lcctManage.createQuery(" project_id=:projectid AND contract_plan_number = '' ").setParameter("projectid", projectId).getSingleResult(false); - double equip_money = new Double(lcctm.getAttribute("EQUIP_AMT").getString()); + BizObject letm = letManage.createQuery("flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + double equip_money = new Double(letm.getAttribute("EQUIP_PRICE").getString()); return (equip_money-sumMoney)+""; }