From 84ecdf521e6baa3d002e6d5ace104778774db3e1 Mon Sep 17 00:00:00 2001 From: gityjf <2211675158@qq.com> Date: Fri, 21 May 2021 16:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BA=BF=E4=B8=8ABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp | 1 + .../app/allinpay/service/impl/AllinpayPaymentRun.java | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp index 63cc2fde4..a7a7dfdc9 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp @@ -917,6 +917,7 @@ function getRatioByMoney(e){ }else if(e.id == "EQUIP_AMT") { firstPaymentRatio = (Number(getItemValue(0, 0, "FIRST_PAYMENT"))/Number(equipAmt)).toFixed(6)*100; setItemValue(0, 0, "FIRST_PAYMENT_RATIO_0", firstPaymentRatio + ""); + setItemValue(0, 0, "FIRST_PAYMENT_RATIO", firstPaymentRatio + ""); } // var ratio = 100 - Number(firstPaymentRatio); // var firstPayment = equipAmt * Number(firstPaymentRatio) / 100; diff --git a/src/com/tenwa/lease/app/allinpay/service/impl/AllinpayPaymentRun.java b/src/com/tenwa/lease/app/allinpay/service/impl/AllinpayPaymentRun.java index 92b580a3f..9343f0007 100644 --- a/src/com/tenwa/lease/app/allinpay/service/impl/AllinpayPaymentRun.java +++ b/src/com/tenwa/lease/app/allinpay/service/impl/AllinpayPaymentRun.java @@ -57,14 +57,10 @@ public class AllinpayPaymentRun implements Runnable { String time = DateAssistant.getTodayNow(); for (Map map : list) { try { - BizObject object = JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.LB_PROJECT_INFO").createQuery("O.id=:id").setParameter("id", map.get("PROJECT_ID")).getSingleResult(false); allinpay = new AllinpayProperties(object.getAttribute("subjectid").toString()); - BizObject result = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_CARD_TLSIGN").createQuery("O.PROJECT_ID=:projectId and SIGN_STATUS='sign_status2'").setParameter("projectId", map.get("PROJECT_ID")).getSingleResult(false); - logger.info(">>>>>>>>>>>通联卡扣协议支付>>>>>>>>PROJECT_ID=" + map.get("PROJECT_ID")); - sqlMap.put("SUBMITTIME", time); sqlMap.put("AGRMNO", result.getAttribute("AGRMNO").toString()); sqlMap.put("START_AMOUNT", map.get("AMOUNT")); @@ -81,7 +77,8 @@ public class AllinpayPaymentRun implements Runnable { sqlMap = sendMessageByProxy(mapXml, sqlMap); if("正在处理".equals(sqlMap.get("STATUS"))){ BizObjectManager bomLRP = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_RENT_PLAN"); - BizObject boLRP = bomLRP.createQuery("id=:id").setParameter("id", map.get("UUID")).getSingleResult(true); + String rentId = map.get("UUID").split("-")[0]; + BizObject boLRP = bomLRP.createQuery("id=:id").setParameter("id", rentId).getSingleResult(true); boLRP.setAttributeValue("batch_status", "process"); bomLRP.saveObject(boLRP); }