小bug修复
This commit is contained in:
parent
9a92efde0d
commit
8f654f396c
@ -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");
|
||||
|
||||
@ -414,6 +414,7 @@
|
||||
<attributes>
|
||||
<attribute name="ID" label="唯一标识" type="STRING" length="32" />
|
||||
<attribute name="RENT_PLAN_ID" label="对应租金计划id" type="STRING" length="32"/>
|
||||
<attribute name="CORPUS_RATE" label="资方利率" type="STRING" length="32"/>
|
||||
<attribute name="PROFIT" label="分润金额" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="创建时间" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
|
||||
@ -19,6 +19,10 @@ public interface LC_PROFIT_PLAN {
|
||||
* 对应租金计划ID STRING(32)<br>
|
||||
*/
|
||||
public static final String RENT_PLAN_ID = "RENT_PLAN_ID";
|
||||
/**
|
||||
* 资方利率 STRING(32)<br>
|
||||
*/
|
||||
public static final String CORPUS_RATE = "CORPUS_RATE";
|
||||
/**
|
||||
* 分润金额 STRING(32)<br>
|
||||
*/
|
||||
|
||||
@ -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<BizObject> 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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user