Commit 9ea2e679 authored by liwenbin's avatar liwenbin

fix

parent b194b275
......@@ -95,6 +95,7 @@ public class NiWoDaiController {
assetDistributeService.distribute(assetForm, asset, dataMap);
} else {
NiwodaiIncomingResultResponseVO vo = JSON.parseObject(data, NiwodaiIncomingResultResponseVO.class);
aidLoanFundAuditOrder.setAuditContext(JSON.toJSONString(vo));
if (!checkIncomingResult(vo)) {
log.info("你我贷审核进件回调结果data出现错误, orderId : {}, type : {}, code : {}, timestamp : {}, data : {}", orderId, type, code, timestamp, JSON.toJSONString(vo));
alarmService.dingtalkAlarm("Error", "你我贷审核结果回调data出现错误", "bizNo : " + orderId + " , type : " + type + " , code : " + code + " , timestamp : " + timestamp + " , data : " + data);
......
......@@ -80,7 +80,7 @@ public class AidFundRouteServiceImpl implements IAidFundRouteService {
if(CollectionUtils.isNotEmpty(aidLoanFundConfigList)){
// AID_LOAN_COUNT_LIMIT_KEY + DateUtil.getDay() //TODO 放redis
aidLoanFundConfigList = aidLoanFundConfigList.parallelStream()
.filter(aidLoanFundConfig->aidLoanFundConfig.getFundCountLimit() >=redisService.setIncr(AID_LOAN_COUNT_LIMIT_KEY + DateUtil.getDay(), 0, 3, TimeUnit.DAYS))
.filter(aidLoanFundConfig->aidLoanFundConfig.getFundCountLimit() >=redisService.setIncr(AID_LOAN_COUNT_LIMIT_KEY + DateUtil.getDay(), 1, 3, TimeUnit.DAYS))
.collect(Collectors.toList());
}
//第四步 限制总额度筛选 额度筛选暂时没有用到
......
......@@ -121,9 +121,9 @@ public class NiwodaiAssetServiceImpl implements INiwodaiAssetService {
userInfo.setEducation(conversEducation((String) infoMap.get("education")).name());
userInfo.setOccupation(conversOccupation((String) infoMap.get("vocation")).name());
userInfo.setIdcardValidity(idCardBack.getValid_date_begin() + "-" + idCardBack.getValid_date_end());
userInfo.setIdcardFront(ocrIdCardRow.getIdCardBaseContentA());
userInfo.setIdcardBack(ocrIdCardRow.getIdCardBaseContentB());
userInfo.setBioPhoto(ocrIdCardRow.getLivePhotoContent());
userInfo.setIdcardFront(ocrIdCardRow.getIdCardBaseContentA().replaceAll("\r\n", ""));
userInfo.setIdcardBack(ocrIdCardRow.getIdCardBaseContentB().replaceAll("\r\n", ""));
userInfo.setBioPhoto(ocrIdCardRow.getLivePhotoContent().replaceAll("\r\n", ""));
userInfo.setImageType("BASE64");
userInfo.setProvince((String) infoMap.get("province"));
userInfo.setCity((String) infoMap.get("city"));
......
......@@ -77,7 +77,7 @@ public class NiwodaiServiceImpl implements INiwodaiService {
return vo;
}
}
throw new QGException(QGExceptionType.NIWODAI_INCOMING_RESULT_ERROR);
throw new QGException(QGExceptionType.NIWODAI_INCOMING_RESULT_ERROR, result);
}
@Override
......
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