逾期利息

This commit is contained in:
liuzhao 2018-08-30 19:31:03 +08:00
parent eeaa7eabda
commit 64651fe87a

View File

@ -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<BizObject> 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";