From 4bfdf53e81b820e574a0eefaba9f39a33da22212 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Wed, 12 Jun 2019 09:39:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E5=89=8D=E7=BB=93=E6=B8=85=E8=BF=9D?= =?UTF-8?q?=E7=BA=A6=E9=87=91=E6=AF=94=E4=BE=8B=E5=8F=96=E5=80=BC=E7=94=B1?= =?UTF-8?q?=E9=BB=98=E8=AE=A40.05=E6=94=B9=E4=B8=BA=E4=BB=8E=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E4=B8=AD=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LCContractTerminate/LCContractTerminateInfo.jsp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp index 4fc63255e..0a435d59a 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp @@ -18,9 +18,11 @@ String contractId=condition.getAttribute("contract_id").getString(); String cautionmoney = Sqlca.getString("select caution_money from lc_calc_condition where CONTRACT_ID='"+contractId+"'"); String mayopemoney = Sqlca.getString("select sum(MAYOPE_MONEY) from LC_EBANK_TEMP where flowunid='"+flowunid+"'"); + BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid); String productId=flow.getAttribute("productId").getString(); - + String ratio = Sqlca.getString("select EarlySettleBreachRatio from PRD_SPECIFIC_LIBRARY where productid='"+productId+"'"); + System.out.println(ratio+"==================="); String sTempletNo = "LCContractTerminate";//--模板号-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); doTemp.setDefaultValue("PAYMENT_NUMBER", paymentnumber); @@ -93,7 +95,11 @@ setItemValue(0,getRow(),"REPURCHASE_MONEY",remaincorpus); setItemValue(0,getRow(),"FIST_RENT",terminateInfo.fist_rent); setItemValue(0,getRow(),"FIST_CORPUS","0"); - setItemValue(0,getRow(),"HANDLING_CHARGE",Number(remaincorpus*0.05).toFixed(2)); + var ratio = 0.05; + if(!(("<%=ratio%>"=="")||"<%=ratio%>"==null)){ + ratio=(Number("<%=ratio%>")/100).toFixed(2); + } + setItemValue(0,getRow(),"HANDLING_CHARGE",Math.round(Number(remaincorpus*ratio)*100)/100); var dateRate=Number("<%=yearrate%>")/100;//获取利率 // var sDate1 = getItemValue(0,getRow(),"PAYDAY_DATE");//获取提出日期 var idays = datedifference(rentPlanDate,paydayAdjust);//获取约定终止日和提出日期相差天数