From 8f654f396c4b59d88a6b64976b83fab0412c4a7e Mon Sep 17 00:00:00 2001 From: ap007 Date: Mon, 26 Jul 2021 19:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8Fbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/Ample/Doc/DocListUploadNew.jsp | 2 ++ WebContent/WEB-INF/etc/jbo/jbo_oti.xml | 1 + src_jbo/jbo/oti/LC_PROFIT_PLAN.java | 4 ++++ .../lease/app/quartzmession/CorpusSourceRentPlanCopy.java | 3 ++- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/WebContent/Ample/Doc/DocListUploadNew.jsp b/WebContent/Ample/Doc/DocListUploadNew.jsp index cbb14b3fa..9065653b2 100644 --- a/WebContent/Ample/Doc/DocListUploadNew.jsp +++ b/WebContent/Ample/Doc/DocListUploadNew.jsp @@ -74,6 +74,7 @@ .setParameter("fcRequestId",params.get("fcRequestId")).setParameter("fcFlowType",params.get("fcFlowType")).setParameter("fcFileCode",params.get("fcFileCode")).getResultList(true); String fcFlowTypeName = frfBoList.get(0).getAttribute("FC_FLOW_TYPE_NAME").toString(); String fcFileCodeName = frfBoList.get(0).getAttribute("FC_FILE_CODE_NAME").toString(); + String fcResValue = frfBoList.get(0).getAttribute("FC_RES_VALUE").toString(); for(BizObject bo : frfBoList){ bo.setAttributeValue("FC_FILE_STS","2"); bo.setAttributeValue("FC_FILE_STS_DESC","用户添加待补传"); @@ -92,6 +93,7 @@ frfBo.setAttributeValue("FILE_PATH",params.get("filePath")); frfBo.setAttributeValue("FC_FILE_STS","2"); frfBo.setAttributeValue("FC_FILE_STS_DESC","用户添加待补传"); + frfBo.setAttributeValue("FC_RES_VALUE",fcResValue); frfBo.setAttributeValue("CREATE_TIME",params.get("inputTime")); frfBo.setAttributeValue("UPDATE_TIME",params.get("inputTime")); frfBo.setAttributeValue("DEL_FLAG","0"); diff --git a/WebContent/WEB-INF/etc/jbo/jbo_oti.xml b/WebContent/WEB-INF/etc/jbo/jbo_oti.xml index 077451637..d7190b017 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_oti.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_oti.xml @@ -414,6 +414,7 @@ + diff --git a/src_jbo/jbo/oti/LC_PROFIT_PLAN.java b/src_jbo/jbo/oti/LC_PROFIT_PLAN.java index d7c03c2ff..afb276500 100644 --- a/src_jbo/jbo/oti/LC_PROFIT_PLAN.java +++ b/src_jbo/jbo/oti/LC_PROFIT_PLAN.java @@ -19,6 +19,10 @@ public interface LC_PROFIT_PLAN { * 对应租金计划ID STRING(32)
*/ public static final String RENT_PLAN_ID = "RENT_PLAN_ID"; + /** + * 资方利率 STRING(32)
+ */ + public static final String CORPUS_RATE = "CORPUS_RATE"; /** * 分润金额 STRING(32)
*/ diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/CorpusSourceRentPlanCopy.java b/src_tenwa/com/tenwa/lease/app/quartzmession/CorpusSourceRentPlanCopy.java index 7dc9b3ecc..ad229dfe5 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/CorpusSourceRentPlanCopy.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/CorpusSourceRentPlanCopy.java @@ -273,15 +273,16 @@ public class CorpusSourceRentPlanCopy implements Job { lrpBom = JBOFactory.getBizObjectManager(LC_RENT_PLAN.CLASS_NAME,tx); BizObject lppBo = null; String paymentNumber = param.get("paymentNumber"); + String corpusSourceRate = param.get("corpusSourceRate"); List lrpBos = lrpBom.createQuery("PAYMENT_NUMBER=:paymentNumber order by plan_list").setParameter("paymentNumber",paymentNumber).getResultList(false); for(BizObject bo :lrpBos){ String rentPlanId = bo.getAttribute("ID").toString(); String interest = bo.getAttribute("INTEREST").toString(); String yearRate = bo.getAttribute("YEAR_RATE").toString(); - String corpusSourceRate = param.get("corpusSourceRate"); String profit = new BigDecimal(yearRate).subtract(new BigDecimal(corpusSourceRate)).divide(new BigDecimal(yearRate),6,BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(interest)).setScale(2,BigDecimal.ROUND_HALF_UP).toString(); lppBo = lppBom.newObject(); lppBo.setAttributeValue("rent_plan_id",rentPlanId); + lppBo.setAttributeValue("CORPUS_RATE",corpusSourceRate); lppBo.setAttributeValue("profit",profit); lppBo.setAttributeValue("inputtime",StringFunction.getTodayNow()); lppBom.saveObject(lppBo);