Commit 6b19e1b1 authored by 技术部-韩成龙's avatar 技术部-韩成龙

筛选完成后没有可用的配置,则通知授信拒绝&补授信拒绝通知

parent 2421380b
......@@ -74,7 +74,11 @@ public class CoreFilter {
@Transactional(rollbackFor = Exception.class)
public void coreHandle(AuditResponce auditResponce){
List<ChannelRuleEntity> channelRuleEntityList;
FilterResult result = new FilterResult();
List<FinanceProduct> financeProducts = new ArrayList<>();
List<RoutingRecordVO> routingRecordList = new ArrayList<>();
UserAssociationBean associationBean = userCenterService.getUserAssociationBean(auditResponce.getUuid());
if (auditResponce.getAuditResult()) {
//白名单
WhiteListEntity whiteListEntity = whiteListRepository.getByPhoneEquals(associationBean.getPhoneNo());
if (whiteListEntity != null && whiteListEntity.getStatus().equals(Byte.valueOf("1"))) {
......@@ -86,8 +90,6 @@ public class CoreFilter {
if (CollectionUtils.isEmpty(channelRuleEntityList)){
throw new RuntimeException("渠道配置产品集不存在,运营人员配置有问题");
}
List<FinanceProduct> financeProducts = new ArrayList<>();
List<RoutingRecordVO> routingRecordList = new ArrayList<>();
for (ChannelRuleEntity channelRuleEntity : channelRuleEntityList) {
FundProductEntity fundProduct = fundProductRepository.getByIdEquals(channelRuleEntity.getFundProductId());
log.info("coreHandle | 开始路由channelRuleEntity={}",channelRuleEntity.toString());
......@@ -102,10 +104,12 @@ public class CoreFilter {
}
}
if (CollectionUtils.isEmpty(financeProducts)) {
throw new RuntimeException("筛选完成后没有可用的配置");
}
FilterResult result = new FilterResult();
log.error("筛选完成后没有可用的配置, bizNo:{}", auditResponce.getBizNo());
auditResponce.setAuditResult(false);
} else {
result.setFinanceProducts(JSON.toJSONString(financeProducts));
}
}
log.info("coreHandle | 通知业务系统审核结果");
Map<String,String> response = httpService.postHasResponse(auditResponce.getCallbackUrl(), result.get(auditResponce));
if(MapUtils.isEmpty(response) || !(HttpStatus.OK.value() + "").equals(response.get("statusCode"))
......
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