Commit ee8266cc authored by Data-王博's avatar Data-王博

湖北消金 - 提前还款批次文件 发生了同一天一个用户 既线上还款又线下还款导致进入同一批次文件。 修复机制 批次改变成和还款期数匹配

parent db5dffc8
...@@ -54,7 +54,7 @@ public class HuBeiReturnDiscScheduler { ...@@ -54,7 +54,7 @@ public class HuBeiReturnDiscScheduler {
/** /**
* Seconds Minutes Hours DayofMonth Month DayofWeek * Seconds Minutes Hours DayofMonth Month DayofWeek
*/ */
@Scheduled(cron = "0 15 20 * * ?") @Scheduled(cron = "0 05 20 * * ?")
public void dayScheduler(){ public void dayScheduler(){
if(scheduledJudgeService.isOpenScheduled()){ if(scheduledJudgeService.isOpenScheduled()){
try { try {
......
...@@ -498,6 +498,7 @@ public class HuBeiServiceImpl implements IHuBeiService { ...@@ -498,6 +498,7 @@ public class HuBeiServiceImpl implements IHuBeiService {
Long loanId = contractNoMapLoanId.get(history.getContactNo()); Long loanId = contractNoMapLoanId.get(history.getContactNo());
List<RepayXyqbDetail> repayXyqbDetailList = loanId==null?null:(ArrayList<RepayXyqbDetail>) listRepayDetailMap.get(loanId); List<RepayXyqbDetail> repayXyqbDetailList = loanId==null?null:(ArrayList<RepayXyqbDetail>) listRepayDetailMap.get(loanId);
List<RepayOfflineRecord> repayOfflineRecordList = loanId==null?null:(ArrayList<RepayOfflineRecord>) listRepayOfflineMap.get(loanId); List<RepayOfflineRecord> repayOfflineRecordList = loanId==null?null:(ArrayList<RepayOfflineRecord>) listRepayOfflineMap.get(loanId);
Boolean isContinue = Boolean.FALSE;
//现金贷还款 //现金贷还款
if(!CollectionUtils.isEmpty(repayXyqbDetailList)){ if(!CollectionUtils.isEmpty(repayXyqbDetailList)){
//过滤掉要查找的期数之前的还款信息 //过滤掉要查找的期数之前的还款信息
...@@ -535,7 +536,7 @@ public class HuBeiServiceImpl implements IHuBeiService { ...@@ -535,7 +536,7 @@ public class HuBeiServiceImpl implements IHuBeiService {
returnHuBeiHistoryList.addAll(advanceHistoryList); returnHuBeiHistoryList.addAll(advanceHistoryList);
} }
} }
continue; isContinue = Boolean.TRUE;
} }
} }
...@@ -583,11 +584,13 @@ public class HuBeiServiceImpl implements IHuBeiService { ...@@ -583,11 +584,13 @@ public class HuBeiServiceImpl implements IHuBeiService {
} }
} }
isContinue = Boolean.TRUE;
continue;
} }
} }
if(isContinue){
//在这里做截断原因是,有可能客户同时发生了线上还款和线下还款 所以都要处理一遍逻辑。
continue;
}
if(compensationContractMapRepayPlan.containsKey(history.getContactNo())){ if(compensationContractMapRepayPlan.containsKey(history.getContactNo())){
//当日代偿 //当日代偿
//湖北罚息 //湖北罚息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment