From 64651fe87a47ebafdffb3bd15e6c16d1a0904c9a Mon Sep 17 00:00:00 2001 From: liuzhao Date: Thu, 30 Aug 2018 19:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=BE=E6=9C=9F=E5=88=A9=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cardispose/LCCarDisposeInitToTempBusiness.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src_tenwa/com/tenwa/lease/flow/carmanage/cardispose/LCCarDisposeInitToTempBusiness.java b/src_tenwa/com/tenwa/lease/flow/carmanage/cardispose/LCCarDisposeInitToTempBusiness.java index acd2dd149..16bb2d8ff 100644 --- a/src_tenwa/com/tenwa/lease/flow/carmanage/cardispose/LCCarDisposeInitToTempBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/carmanage/cardispose/LCCarDisposeInitToTempBusiness.java @@ -3,6 +3,7 @@ package com.tenwa.lease.flow.carmanage.cardispose; import java.util.List; +import jbo.app.tenwa.calc.VI_OVERDUE_RENT_PLAN_SUM; import jbo.app.tenwa.calc.VI_RENT_PLAN; import jbo.com.tenwa.lease.comm.LC_CAR_DISPOSE_TEMP; @@ -21,6 +22,12 @@ public class LCCarDisposeInitToTempBusiness extends BaseBussiness { BizObjectManager bm = JBOFactory.getBizObjectManager(LC_CAR_DISPOSE_TEMP.CLASS_NAME); String sql="select * from O where O.contract_id=:contract_id"; List boList=JBOFactory.createBizObjectQuery(VI_RENT_PLAN.CLASS_NAME,sql).setParameter("contract_id", this.getAttribute("ContractId").toString()).getResultList(false); + BizObject overdueBizObject = JBOFactory.createBizObjectQuery(VI_OVERDUE_RENT_PLAN_SUM.CLASS_NAME, "contract_id=:contract_id").setParameter("contract_id", this.getAttribute("ContractId").toString()).getSingleResult(false); + String overInterest=""; + if(overdueBizObject !=null){ + overInterest = overdueBizObject.getAttribute("over_interest").toString(); + } + //vi_overdue_rent_plan_sum BizObject boVI=null; int sum=0; int interestOver=0; @@ -37,6 +44,7 @@ public class LCCarDisposeInitToTempBusiness extends BaseBussiness { bo.setAttributeValue("flowunid", this.getAttribute("FlowUnid").toString()); bo.setAttributeValue("FRAME_NUMBER", this.getAttribute("ProjectName").toString().split("-")[0]); bo.setAttributeValue("contract_no", this.getAttribute("FlowKey").toString()); + bo.setAttributeValue("out_date_interest", overInterest); bm.saveObject(bo); String sMessage="true";