经销商代偿新增连续代偿次数统计
This commit is contained in:
parent
a826a76be2
commit
1f699f522e
@ -740,6 +740,8 @@
|
||||
<attribute name="ACCOUNT_INFO" label="账户信息" type="STRING" length="32"/>
|
||||
<attribute name="ACCOUNT" label="账户名称" type="STRING" length="32"/>
|
||||
<attribute name="DISTRIBUTOR_ACCOUNT_TEMP" label="经销商名称" type="STRING" length="32"/>
|
||||
<attribute name="SUBJECTID" label="主体id" type="STRING" length="32"/>
|
||||
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="200"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -771,6 +773,7 @@
|
||||
<attribute name="CONTRACT_ID" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="PLAN_LIST" label="期次" type="STRING" length="32"/>
|
||||
<attribute name="RENT_PLAN_ID" label="租金计划ID" type="STRING" length="32"/>
|
||||
<attribute name="COMPENSATORY_CON" label="连续代偿期数" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -800,6 +803,8 @@
|
||||
<attribute name="LOCAL_BANK" label="本方银行" type="STRING" length="100"/>
|
||||
<attribute name="ACCOUNT_BALANCE" label="账户余额" type="DOUBLE" length="22" scale="2"/>
|
||||
<attribute name="refund_number" label="退款账号" type="STRING" length="32"/>
|
||||
<attribute name="SUBJECTID" label="主体id" type="STRING" length="32"/>
|
||||
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="200"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -651,6 +651,7 @@ public class CollectAuditInfoCache {
|
||||
int i = 0,j = 0;
|
||||
String[] ids = id.split("@");
|
||||
String[] penaltyArray = penaltys.split("@");
|
||||
String COMPENSATORY_CON=null;
|
||||
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(VI_LC_AUDIT_RENT_PLAN.CLASS_NAME,tx);
|
||||
BizObjectManager bc = JBOFactory.getFactory().getManager(LC_RENT_PLAN.CLASS_NAME,tx);
|
||||
@ -663,9 +664,23 @@ public class CollectAuditInfoCache {
|
||||
BigDecimal interest =new BigDecimal(bom.getAttribute("interest").getString());
|
||||
BigDecimal penalty = new BigDecimal(penaltyArray[c]);
|
||||
String t_rent = corpus.add(interest).add(penalty).toString();
|
||||
|
||||
/**
|
||||
* 获取上一期是否有代偿记录
|
||||
*/
|
||||
String contract_id = bom.getAttribute("contract_id").toString();
|
||||
int plan_list=Integer.parseInt(bom.getAttribute("plan_list").toString())-1;
|
||||
// 查询当前要代偿期次的上一期代偿记录, 有数据则联系代偿记录加1,没有数据则默认为1;
|
||||
BizObject ddi = bd.createQuery("SELECT O.COMPENSATORY_CON FROM O WHERE O.MONEY_TYPE='bondRepay' AND O.CONTRACT_ID='"+contract_id+"' AND O.PLAN_LIST='"+plan_list+"'").getSingleResult(false);
|
||||
if(ddi!=null && !"".equals(ddi)) {
|
||||
COMPENSATORY_CON=String.valueOf(Integer.parseInt(ddi.getAttribute("COMPENSATORY_CON").getString())+1);
|
||||
}else {
|
||||
COMPENSATORY_CON="1";
|
||||
}
|
||||
|
||||
//handcraftsingleCollectMoeny方法的最后一个参数原为hire_list,现改为客户输入核销罚息参数(周亚辉)
|
||||
//代偿不再往租金实收表插入数据
|
||||
// Map<String, String> map = handcraftsingleCollectMoenyDistrbutor(tx,bc,bom,rent,penaltyArray[c]);
|
||||
// Map<String, String> map = handcraftsingleCollectMoenyDistrbutor(tx,bc,bom,rent,penaltyArray[c]);
|
||||
i++;
|
||||
//更新收付状态
|
||||
bc.createQuery("update O set O.COLLECT_STATUS=:COLLECT_STATUS ,O.COLLECT_MSG=:COLLECT_MSG,O.PENALTY=:PENALTY where O.id=:id")
|
||||
@ -688,6 +703,7 @@ public class CollectAuditInfoCache {
|
||||
bod.setAttributeValue("CONTRACT_ID",bom.getAttribute("contract_id").toString());
|
||||
bod.setAttributeValue("PLAN_LIST",bom.getAttribute("plan_list").toString());
|
||||
bod.setAttributeValue("RENT_PLAN_ID",bom.getAttribute("id").toString());
|
||||
bod.setAttributeValue("COMPENSATORY_CON",COMPENSATORY_CON);
|
||||
bd.saveObject(bod);
|
||||
//修改经销商信息表里的金额
|
||||
bdi.createQuery("update O set O.sums='"+account_balance+"' where O.distributor_no=:distributor_id").setParameter("distributor_id", distributor_id).executeUpdate();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user