Commit 1f436134 authored by 郝彦辉's avatar 郝彦辉

存量工具方法优化

parent 27237ff8
...@@ -23,6 +23,7 @@ import cn.quantgroup.report.service.baihang.util.Base64; ...@@ -23,6 +23,7 @@ import cn.quantgroup.report.service.baihang.util.Base64;
import cn.quantgroup.report.service.baihang.util.TuoMinUtils; import cn.quantgroup.report.service.baihang.util.TuoMinUtils;
import cn.quantgroup.report.service.http.IHttpService; import cn.quantgroup.report.service.http.IHttpService;
import cn.quantgroup.report.utils.DateUtils; import cn.quantgroup.report.utils.DateUtils;
import cn.quantgroup.report.utils.dingtalk.DingTalk;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
...@@ -87,6 +88,9 @@ public class BaiHangZhuDaiService { ...@@ -87,6 +88,9 @@ public class BaiHangZhuDaiService {
@Autowired @Autowired
public RepaymentLoanWhiteListMapper repaymentLoanWhiteListMapper; public RepaymentLoanWhiteListMapper repaymentLoanWhiteListMapper;
@Autowired
private DingTalk dingTalk;
@Autowired @Autowired
public IHttpService iHttpService; public IHttpService iHttpService;
...@@ -359,6 +363,7 @@ public class BaiHangZhuDaiService { ...@@ -359,6 +363,7 @@ public class BaiHangZhuDaiService {
} }
} catch (Exception e) { } catch (Exception e) {
log.error("量化派助贷TO百行报送-异常", e); log.error("量化派助贷TO百行报送-异常", e);
dingTalk.talk("Error","量化派助贷TO百行报送-放款异常", e);
} }
log.info("量化派助贷TO百行报送-放款申请完成, 实际大小: {} , 报送成功大小: {} , 保存日志: {} , 耗时: {} ", loanInfos.size(), succ_atomicInteger.get(), save_atomicInteger.get(), (sendWatch.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s"); log.info("量化派助贷TO百行报送-放款申请完成, 实际大小: {} , 报送成功大小: {} , 保存日志: {} , 耗时: {} ", loanInfos.size(), succ_atomicInteger.get(), save_atomicInteger.get(), (sendWatch.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s");
...@@ -499,6 +504,7 @@ public class BaiHangZhuDaiService { ...@@ -499,6 +504,7 @@ public class BaiHangZhuDaiService {
} catch (Exception e) { } catch (Exception e) {
log.error("量化派助贷TO百行报送-异常 J: {} , 开始时间: {} , 结束时间: {} ", j, startnyr, endnyr, e); log.error("量化派助贷TO百行报送-异常 J: {} , 开始时间: {} , 结束时间: {} ", j, startnyr, endnyr, e);
dingTalk.talk("Error","量化派助贷TO百行报送-"+(j==0?"还款":"逾期")+"信息异常", e);
} }
} }
...@@ -1216,12 +1222,11 @@ public class BaiHangZhuDaiService { ...@@ -1216,12 +1222,11 @@ public class BaiHangZhuDaiService {
log.info("还款存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} ", repaymentInfoList.size(), starTime, (realTimeStopWatch1.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s"); log.info("还款存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} ", repaymentInfoList.size(), starTime, (realTimeStopWatch1.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s");
//联合贷产品上线时间,上线后才有数据 //联合贷产品上线时间,上线后才有数据
//2020.06.02 ---------------只修复非联合贷有问题----------------------- if(erlyDate.plusDays(counter-1).compareTo(liang_he_dai_start) >= 0){
/*if(erlyDate.plusDays(counter-1).compareTo(liang_he_dai_start) >= 0){
Stopwatch realTimeStopWatch2 = Stopwatch.createStarted(); Stopwatch realTimeStopWatch2 = Stopwatch.createStarted();
repaymentLoanInfosLh = repaymentLoanInfoMapper.findRealTimeRepayMentInfoLh(timeRecord); repaymentLoanInfosLh = repaymentLoanInfoMapper.findRealTimeRepayMentInfoLh(timeRecord);
log.info("还款存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} ", repaymentLoanInfosLh.size(), starTime, (realTimeStopWatch2.stop().elapsed(TimeUnit.MILLISECONDS)/1000)+".s"); log.info("还款存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} ", repaymentLoanInfosLh.size(), starTime, (realTimeStopWatch2.stop().elapsed(TimeUnit.MILLISECONDS)/1000)+".s");
}*/ }
} else { } else {
if (StringUtils.isNotEmpty(d3Type) && d3Type.equals("0")) {//只要还款 if (StringUtils.isNotEmpty(d3Type) && d3Type.equals("0")) {//只要还款
...@@ -1233,12 +1238,11 @@ public class BaiHangZhuDaiService { ...@@ -1233,12 +1238,11 @@ public class BaiHangZhuDaiService {
log.info("逾期存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} ", repaymentInfoList.size(), starTime, (realTimeOverdueStopWatch3.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s"); log.info("逾期存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} ", repaymentInfoList.size(), starTime, (realTimeOverdueStopWatch3.stop().elapsed(TimeUnit.MILLISECONDS) / 1000) + ".s");
//联合贷产品上线时间,上线后才有数据 //联合贷产品上线时间,上线后才有数据
//2020.06.02 ---------------只修复非联合贷有问题----------------------- if(erlyDate.plusDays(counter-1).compareTo(liang_he_dai_start) >= 0){
/*if(erlyDate.plusDays(counter-1).compareTo(liang_he_dai_start) >= 0){
Stopwatch realTimeOverdueStopWatch4 = Stopwatch.createStarted(); Stopwatch realTimeOverdueStopWatch4 = Stopwatch.createStarted();
repaymentLoanInfosLh = repaymentLoanInfoMapper.findRealTimeRepayMentOverdueLh(timeRecord); repaymentLoanInfosLh = repaymentLoanInfoMapper.findRealTimeRepayMentOverdueLh(timeRecord);
log.info("逾期存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} ", repaymentLoanInfosLh.size(), starTime, (realTimeOverdueStopWatch4.stop().elapsed(TimeUnit.MILLISECONDS)/1000)+".s"); log.info("逾期存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} ", repaymentLoanInfosLh.size(), starTime, (realTimeOverdueStopWatch4.stop().elapsed(TimeUnit.MILLISECONDS)/1000)+".s");
}*/ }
} }
if (repaymentInfoList == null) { if (repaymentInfoList == null) {
......
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