Commit 0c27a4d3 authored by suntao's avatar suntao

二次风控 productType x 修改

parent a2e7d3c2
...@@ -335,18 +335,22 @@ public class OrderServiceImpl implements OrderService{ ...@@ -335,18 +335,22 @@ public class OrderServiceImpl implements OrderService{
log.info("[secendAudit]二次风控失败,未找到user channelOrderNumber={}", channelOrderNumber); log.info("[secendAudit]二次风控失败,未找到user channelOrderNumber={}", channelOrderNumber);
return new Tuple<>(false, "二次风控失败,未找到user"); return new Tuple<>(false, "二次风控失败,未找到user");
} }
ChannelConf channelConf = channelConfRepository.getByChannelId(orderMapping.getRegisteredFrom());
if (channelConf == null) {
log.info("[secendAudit]二次风控失败,未找到channelConf配置 channelOrderNumber={}", channelOrderNumber);
return new Tuple<>(false, "二次风控失败,未找到channelConf配置");
}
LoanApplicationHistory loanApplicationHistory = xyqbCenterService.findLoanApplicationHistoryById(orderMapping.getLoanId()); LoanApplicationHistory loanApplicationHistory = xyqbCenterService.findLoanApplicationHistoryById(orderMapping.getLoanId());
if (LoanProgress.START_ORDER.equals(loanApplicationHistory.getProgress())) { if (LoanProgress.START_ORDER.equals(loanApplicationHistory.getProgress())) {
ClfChannelConfiguration clfChannelConfiguration = clfCenterService.findChannelConfigurationByChannelId(orderMapping.getRegisteredFrom());
if (clfChannelConfiguration == null) {
return new Tuple(false, "二次风控失败,clfChannelConfiguration渠道配置为空");
}
QuotaProduct quotaProduct = xyqbCenterService.getXyqbProduct(clfChannelConfiguration.getXyqbProductId());
if (quotaProduct == null) {
return new Tuple(false, "二次风控失败,xyqb.quota_product配置为空(".concat(clfChannelConfiguration.getXyqbProductId()).concat(")"));
}
// 50 // 50
log.info("[secendAudit]二次风控发起,channelOrderNumber={}, bizType={}", channelOrderNumber, channelConf.getBizType()); log.info("[secendAudit]二次风控发起,channelOrderNumber={}, bizType={}", channelOrderNumber, quotaProduct.getProductType());
result = clothoCenterService.orderAuditNotify(xUser.getUuid(), orderMapping.getLoanId(), true, channelConf.getBizType()); result = clothoCenterService.orderAuditNotify(xUser.getUuid(), orderMapping.getLoanId(), true, quotaProduct.getProductType());
if (result) { if (result) {
log.info("[secendAudit]二次风控成功,channelOrderNumber={}, result={}", channelOrderNumber, result); log.info("[secendAudit]二次风控成功,channelOrderNumber={}, result={}", channelOrderNumber, result);
} else { } else {
......
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