1.视图vi_lc_audit_rent_plan增加plan_rent。

2.代偿的罚息修改后,按修改后的计算。
This commit is contained in:
zhangbb 2019-08-14 16:07:17 +08:00
parent 5e4acc265b
commit 5abecc7c60
2 changed files with 17 additions and 3 deletions

View File

@ -2374,6 +2374,7 @@
<attribute name="CUSTOMER_NAME" label="承租人" type="STRING"/>
<attribute name="plan_list" label="期项" type="STRING"/>
<attribute name="plan_date" label="计划日期" type="STRING"/>
<attribute name="plan_rent" label="计划租金" type="STRING"/>
<attribute name="fact_rent" label="实际租金" type="STRING"/>
<attribute name="fact_corpus" label="实际本金" type="STRING"/>
<attribute name="fact_interest" label="实际利息" type="STRING"/>

View File

@ -656,7 +656,10 @@ public class CollectAuditInfoCache {
for(int c=0;c<ids.length;c++){
BizObject bom = bm.createQuery("select distinct O.contract_id,O.plan_list,O.plan_date,O.id,ca.ACC_NUMBER,ca.ACCOUNT,O.rent from O , jbo.app.tenwa.customer.CUSTOMER_ACCOUNT ca where O.contract_id=ca.contract_id and ca.acc_type = 'Debit' and O.id ='"+ids[c]+"'").getSingleResult(false);
String rent = bom.getAttribute("rent").toString();
BizObject boc = bc.createQuery("id=:id").setParameter("id", bom.getAttribute("id").toString()).getSingleResult(false);
BigDecimal rent =new BigDecimal(boc.getAttribute("rent").getString());
BigDecimal penalty = new BigDecimal(penaltyArray[c]);
String t_rent = rent.add(penalty).toString();
//handcraftsingleCollectMoeny方法的最后一个参数原为hire_list现改为客户输入核销罚息参数周亚辉
//代偿不再往租金实收表插入数据
// Map<String, String> map = handcraftsingleCollectMoenyDistrbutor(tx,bc,bom,rent,penaltyArray[c]);
@ -670,10 +673,10 @@ public class CollectAuditInfoCache {
//在这里插入经销商保证金退回表的数据
BizObject bobdi = bdi.createQuery("distributor_no=:distributor_id").setParameter("distributor_id", distributor_id).getSingleResult(false);
BigDecimal sum = new BigDecimal(bobdi.getAttribute("sums").getString());
double account_balance = sum.subtract(new BigDecimal(rent)).doubleValue();
double account_balance = sum.subtract(new BigDecimal(t_rent)).doubleValue();
BizObject bod = bd.newObject();
bod.setAttributeValue("DISTRIBUTOR_ID", distributor_id);
bod.setAttributeValue("CAUTION_MONEY", rent);
bod.setAttributeValue("CAUTION_MONEY", t_rent);
bod.setAttributeValue("ACCOUNT_BALANCE", account_balance);
bod.setAttributeValue("MONEY_TYPE","bondRepay");
bod.setAttributeValue("INPUTTIME",StringFunction.getTodayNow());
@ -689,6 +692,16 @@ public class CollectAuditInfoCache {
return "总共有 "+i+" 笔租金收款成功\n"+j+" 笔租金收款失败";
}
private BigDecimal BigDecimal(String string) {
// TODO Auto-generated method stub
return null;
}
private Double Double(String string) {
// TODO Auto-generated method stub
return null;
}
/**
* 实时代收
* @param rent 租金