From 456ef5a63c4b72b9da6f1ba18599077dc24c3258 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Fri, 13 Dec 2019 18:33:09 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E6=89=8B=E7=BB=AD=E8=B4=B9?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E5=AD=97=E6=AE=B5=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=94=AF=E4=BB=98=E7=9A=84=E4=B8=80=E4=BA=9B?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Flow/Rent/RentReback/SplittingList.jsp | 2 +- WebContent/WEB-INF/etc/jbo/jbo_calc.xml | 7 +- .../flow/rent/rentreback/OtherPayMethod.java | 93 +++++++++++-------- 3 files changed, 61 insertions(+), 41 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Rent/RentReback/SplittingList.jsp b/WebContent/Tenwa/Lease/Flow/Rent/RentReback/SplittingList.jsp index 51a349572..e8c10a189 100644 --- a/WebContent/Tenwa/Lease/Flow/Rent/RentReback/SplittingList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Rent/RentReback/SplittingList.jsp @@ -38,7 +38,7 @@ } var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.rent.rentreback.OtherPayMethod","createSplittingPayTemp", - "planIDs="+id+",interestSPs="+interestSP+",flowunid=<%=flowunid%>,serviceType=AutoBuckle"); + "planIDs="+id+",interestSPs="+interestSP+",flowunid=<%=flowunid%>"); if("success"==sResult){ alert("操作成功,请到分润支付数据中查看!"); reloadSelf(); diff --git a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml index 177c769bd..c3cb359dd 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml @@ -245,6 +245,7 @@ + @@ -530,6 +531,7 @@ + @@ -1515,6 +1517,7 @@ + @@ -2491,6 +2494,7 @@ + @@ -4104,7 +4108,8 @@ - + + diff --git a/src_tenwa/com/tenwa/lease/flow/rent/rentreback/OtherPayMethod.java b/src_tenwa/com/tenwa/lease/flow/rent/rentreback/OtherPayMethod.java index cf6caefec..3a0fa88fa 100644 --- a/src_tenwa/com/tenwa/lease/flow/rent/rentreback/OtherPayMethod.java +++ b/src_tenwa/com/tenwa/lease/flow/rent/rentreback/OtherPayMethod.java @@ -8,6 +8,7 @@ import java.util.HashMap; import java.util.Map; import jbo.app.tenwa.calc.LC_EBANK_PROCESS; +import jbo.app.tenwa.calc.LC_RENT_PLAN; import jbo.app.tenwa.customer.LPOUNDAGE_MAINTENANCE; import jbo.com.tenwa.entity.comm.flow.LC_SPLITTING_PAY_TEMP; @@ -36,48 +37,45 @@ public class OtherPayMethod { - public String createSplittingPayTemp(JBOTransaction tx){ - SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd"); - String currentDate = df.format(new Date()); - BizObjectManager lm; + public String createSplittingPayTemp(JBOTransaction tx) throws JBOException{ BigDecimal ratio = null; String rate = "0"; - try { - lm = JBOFactory.getBizObjectManager(LPOUNDAGE_MAINTENANCE.CLASS_NAME,tx); - String getServiceRatioSQL = "select rate from O where charge_way='"+serviceType+"' AND start_date<='"+currentDate+"' AND expiry_date>='"+currentDate+"'"; - BizObject boRatio = lm.createQuery(getServiceRatioSQL).getSingleResult(false); - rate = boRatio.getAttribute("rate").toString(); - ratio = (new BigDecimal(rate)).divide(new BigDecimal("100"), 6, BigDecimal.ROUND_HALF_UP); - } catch (JBOException e1) { - e1.printStackTrace(); - return "获取手续费费率失败"; - } - if(ratio!=null){ - String[] interestSP = interestSPs.split("@"); - String[] planID = planIDs.split("@"); - if(interestSP.length==planID.length){ - for(int i=0;i='"+currentDate+"'"; + BizObject boRatio = lm.createQuery(getServiceRatioSQL).getSingleResult(false); + String rate = boRatio.getAttribute("rate")==null?"0":boRatio.getAttribute("rate").toString(); + ratio = (new BigDecimal(rate)).divide(new BigDecimal("100"), 6, BigDecimal.ROUND_HALF_UP); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + return ratio; + } public String getFlowunid() { return flowunid; }