Commit 4e4328f5 authored by suntao's avatar suntao

放款

parent 47a30aef
......@@ -300,6 +300,7 @@ public class OrderService {
}
/**
* 已经自动,无须调用
* 二次风控
*
* @param lendingFormModel
......@@ -395,6 +396,7 @@ public class OrderService {
ClfOrderMapping orderMapping = this.clfOrderMappingRepository.findByChannelOrderNoAndRegisteredFromLastOne(lendingFormModel.getChannelOrderNumber(), lendingFormModel.getChannelId());
String optDetail = "";
// 操作记录
OptHistoryLog optHistoryLog = new OptHistoryLog();
......@@ -406,6 +408,14 @@ public class OrderService {
optHistoryLog.setCreateTime(new Date());
// 更新合同状态
Contract conscont= xyqbCenterService.findContractByUserId(orderMapping.getQgUserId());
if (conscont == null) {
// 合同为空 log表记录问题,UI用户查询
optDetail = optDetail.concat("合同未生成,请注意,需要不用身份证才能自动生成合同");
}
if (orderApprove.getFundType() == 0) {
// 如果是非存管
result = this.xyqbCenterService.payResultNotify(orderMapping.getLoanId(), lendingFormModel.getResult());
......@@ -424,15 +434,15 @@ public class OrderService {
}
if (result) {
optHistoryLog.setOptLogDetail("放款操作成功");
optDetail = optDetail.concat(",放款操作成功");
optHistoryLog.setOptResult(true);
} else {
optHistoryLog.setOptLogDetail("放款操作失败");
optDetail = optDetail.concat(",放款操作失败");
optHistoryLog.setOptResult(false);
}
log.info("[order_lending]放款操作 最后结果,channelOrderNumber={}, result={}", lendingFormModel.getChannelOrderNumber(), result);
optHistoryLog.setOptLogDetail(optDetail);
optHistoryLogService.save(optHistoryLog);
return result;
......
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