Commit dae12259 authored by 郝彦辉's avatar 郝彦辉

2020.06.18 暂时先注掉,补报 2020-06-11到2020-06-18的还款

parent 32867cd8
...@@ -407,6 +407,7 @@ public class BaiHangZhuDaiService { ...@@ -407,6 +407,7 @@ public class BaiHangZhuDaiService {
log.info("量化派助贷TO百行报送-联合贷实时还款, startnyr: {} , endnyr: {} , 大小: {} , 耗时: {} ", startnyr, endnyr, repaymentLoanInfosLh.size(), (realTimeStopWatch2.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s"); log.info("量化派助贷TO百行报送-联合贷实时还款, startnyr: {} , endnyr: {} , 大小: {} , 耗时: {} ", startnyr, endnyr, repaymentLoanInfosLh.size(), (realTimeStopWatch2.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s");
} else { } else {
/* 2020.06.18 暂时先注掉,补报 2020-06-11到2020-06-18的还款
Stopwatch realTimeOverdueStopWatch3 = Stopwatch.createStarted(); Stopwatch realTimeOverdueStopWatch3 = Stopwatch.createStarted();
//repaymentLoanInfos = repaymentLoanInfoMapper.findRealTimeRepayMentOverdue(timeRecord); //repaymentLoanInfos = repaymentLoanInfoMapper.findRealTimeRepayMentOverdue(timeRecord);
//2020.06.18 方法findRealTimeRepayMentOverdue用in查询已经慢的查不出,用等于吧 //2020.06.18 方法findRealTimeRepayMentOverdue用in查询已经慢的查不出,用等于吧
...@@ -417,7 +418,8 @@ public class BaiHangZhuDaiService { ...@@ -417,7 +418,8 @@ public class BaiHangZhuDaiService {
Stopwatch realTimeOverdueStopWatch4 = Stopwatch.createStarted(); Stopwatch realTimeOverdueStopWatch4 = Stopwatch.createStarted();
repaymentLoanInfosLh = repaymentLoanInfoMapper.findRealTimeRepayMentOverdueLh(timeRecord); repaymentLoanInfosLh = repaymentLoanInfoMapper.findRealTimeRepayMentOverdueLh(timeRecord);
log.info("量化派助贷TO百行报送-联合贷实时还款逾期, startnyr: {} , endnyr: {} , 大小: {} , 耗时: {} ", startnyr, endnyr, repaymentLoanInfosLh.size(), (realTimeOverdueStopWatch4.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s"); log.info("量化派助贷TO百行报送-联合贷实时还款逾期, startnyr: {} , endnyr: {} , 大小: {} , 耗时: {} ", startnyr, endnyr, repaymentLoanInfosLh.size(), (realTimeOverdueStopWatch4.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s");
*/
continue;
} }
if (repaymentLoanInfos == null) { if (repaymentLoanInfos == null) {
...@@ -517,7 +519,7 @@ public class BaiHangZhuDaiService { ...@@ -517,7 +519,7 @@ public class BaiHangZhuDaiService {
dingTalk.talk("Error","量化派助贷TO百行报送-"+(j==0?"还款":"逾期")+"信息异常", e); dingTalk.talk("Error","量化派助贷TO百行报送-"+(j==0?"还款":"逾期")+"信息异常", e);
} }
} }
log.info("量化派助贷TO百行报送-实时还款&逾期结束, resMsg: {} ", resMsg);
return resMsg; return resMsg;
} }
...@@ -2341,48 +2343,51 @@ public class BaiHangZhuDaiService { ...@@ -2341,48 +2343,51 @@ public class BaiHangZhuDaiService {
//2020.06.18 3.1百行助贷-非联合贷 实时还款 //2020.06.18 3.1百行助贷-非联合贷 实时还款
private List<RepaymentInfoZhuDai> findRealTimeRepayMentInfoByFCId(String startnyr, String endnyr) throws Exception{ private List<RepaymentInfoZhuDai> findRealTimeRepayMentInfoByFCId(String startnyr, String endnyr) throws Exception{
List<RepaymentInfoZhuDai> allRepaymentLoanInfo = new ArrayList<>(); List<RepaymentInfoZhuDai> allRepaymentLoanInfo = new ArrayList<>();
log.info("百行助贷-非联合贷还款查询, 按资方id查询开始, startnyr: {} , endnyr: {} , fundingCorpIds: {} ", startnyr, endnyr, fundingCorpIds.toString()); log.info("非联合贷还款-按资方id查询开始, startnyr: {} , endnyr: {} , fundingCorpIds: {} >>>>>>", startnyr, endnyr, JSON.toJSONString(fundingCorpIds));
for (Integer fundingCorpId : fundingCorpIds) { for (Integer fundingCorpId : fundingCorpIds) {
try { try {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
BaiHangTimeRecord params = BaiHangTimeRecord.builder().startTime(startnyr).endTime(endnyr).eqFundingCorpId(fundingCorpId).build(); BaiHangTimeRecord params = BaiHangTimeRecord.builder().startTime(startnyr).endTime(endnyr).eqFundingCorpId(fundingCorpId).build();
List<RepaymentInfoZhuDai> tmpList = repaymentLoanInfoMapper.findRealTimeRepayMentInfo_byFCId(params); List<RepaymentInfoZhuDai> tmpList = repaymentLoanInfoMapper.findRealTimeRepayMentInfo_byFCId(params);
log.info("百行助贷-非联合贷还款查询, 按资方id查询结束, fundingCorpId: {} , 大小: {} , 耗时: {} ", fundingCorpId, tmpList!=null?tmpList.size():0, (System.currentTimeMillis()-start)); log.info("非联合贷还款-按资方id查询结束, fundingCorpId: {} , 大小: {} , 耗时: {} ", fundingCorpId, tmpList!=null?tmpList.size():0, (System.currentTimeMillis()-start));
if(tmpList!=null && tmpList.size()>0){ if(tmpList!=null && tmpList.size()>0){
allRepaymentLoanInfo.addAll(tmpList); allRepaymentLoanInfo.addAll(tmpList);
} }
}catch (Exception e){ }catch (Exception e){
log.error("百行助贷-非联合贷还款查询, 按资方id查询异常, fundingCorpId: {} ", fundingCorpId, e); log.error("非联合贷还款-按资方id查询异常, fundingCorpId: {} ", fundingCorpId, e);
allRepaymentLoanInfo = null; allRepaymentLoanInfo = null;
throw e; throw e;
} }
} }
log.info("非联合贷还款-按资方id查询结束All, startnyr: {} , endnyr: {} , fundingCorpIds: {} , 大小: {} <<<<<<", startnyr, endnyr, JSON.toJSONString(fundingCorpIds), allRepaymentLoanInfo!=null?allRepaymentLoanInfo.size():0);
return allRepaymentLoanInfo; return allRepaymentLoanInfo;
} }
//2020.06.18 4.1百行助贷-非联合贷 实时逾期还款 //2020.06.18 4.1百行助贷-非联合贷 实时逾期还款
private List<RepaymentInfoZhuDai> findRealTimeRepayMentOverdueByFCId(String startnyr, String endnyr) throws Exception{ private List<RepaymentInfoZhuDai> findRealTimeRepayMentOverdueByFCId(String startnyr, String endnyr) throws Exception{
List<RepaymentInfoZhuDai> allRepaymentLoanInfo = new ArrayList<>(); List<RepaymentInfoZhuDai> allRepaymentLoanInfo = new ArrayList<>();
log.info("百行助贷-非联合贷逾期查询, 按资方id查询开始, startnyr: {} , endnyr: {} , fundingCorpIds: {} ", startnyr, endnyr, fundingCorpIds.toString()); log.info("非联合贷逾期按资方id查询开始, startnyr: {} , endnyr: {} , fundingCorpIds: {} >>>>>>", startnyr, endnyr, JSON.toJSONString(fundingCorpIds));
for (Integer fundingCorpId : fundingCorpIds) { for (Integer fundingCorpId : fundingCorpIds) {
try { try {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
BaiHangTimeRecord params = BaiHangTimeRecord.builder().startTime(startnyr).endTime(endnyr).eqFundingCorpId(fundingCorpId).build(); BaiHangTimeRecord params = BaiHangTimeRecord.builder().startTime(startnyr).endTime(endnyr).eqFundingCorpId(fundingCorpId).build();
List<RepaymentInfoZhuDai> tmpList = repaymentLoanInfoMapper.findRealTimeRepayMentOverdue_byFCId(params); List<RepaymentInfoZhuDai> tmpList = repaymentLoanInfoMapper.findRealTimeRepayMentOverdue_byFCId(params);
log.info("百行助贷-非联合贷逾期查询, 按资方id查询结束, fundingCorpId: {} , 大小: {} , 耗时: {} ", fundingCorpId, tmpList!=null?tmpList.size():0, (System.currentTimeMillis()-start)); log.info("非联合贷逾期按资方id查询结束, fundingCorpId: {} , 大小: {} , 耗时: {} ", fundingCorpId, tmpList!=null?tmpList.size():0, (System.currentTimeMillis()-start));
if(tmpList!=null && tmpList.size()>0){ if(tmpList!=null && tmpList.size()>0){
allRepaymentLoanInfo.addAll(tmpList); allRepaymentLoanInfo.addAll(tmpList);
} }
}catch (Exception e){ }catch (Exception e){
log.error("百行助贷-非联合贷逾期查询, 按资方id查询异常, fundingCorpId: {} ", fundingCorpId, e); log.error("非联合贷逾期按资方id查询异常, fundingCorpId: {} ", fundingCorpId, e);
allRepaymentLoanInfo = null; allRepaymentLoanInfo = null;
throw e; throw e;
} }
} }
log.info("非联合贷逾期按资方id查询结束All, startnyr: {} , endnyr: {} , fundingCorpIds: {} , 大小: {} <<<<<<", startnyr, endnyr, JSON.toJSONString(fundingCorpIds), allRepaymentLoanInfo!=null?allRepaymentLoanInfo.size():0);
return allRepaymentLoanInfo; return allRepaymentLoanInfo;
} }
} }
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