Commit 56ea03df authored by suntao's avatar suntao

放款

parent d7aa7daf
...@@ -251,17 +251,19 @@ public class OrderService { ...@@ -251,17 +251,19 @@ public class OrderService {
if (orderApprove.getFundType() == 0) { if (orderApprove.getFundType() == 0) {
// 如果是非存管 // 如果是非存管
this.xyqbCenterService.payResultNotify(orderMapping.getLoanId(), lendingFormModel.getResult()); result = this.xyqbCenterService.payResultNotify(orderMapping.getLoanId(), lendingFormModel.getResult());
} else { } else {
// p2p // p2p
this.xyqbCenterService.payResultNotify(orderMapping.getLoanId(), lendingFormModel.getResult()); this.xyqbCenterService.payResultNotify(orderMapping.getLoanId(), lendingFormModel.getResult());
Map data = this.xyqbCenterService.queryLendingRecordCount(orderApprove.getFundId(), 0); Map data = this.xyqbCenterService.queryLendingRecordCount(orderApprove.getFundId(), 0);
if (data.size() > 0) { if (data.size() > 0) {
if (Objects.nonNull(data.get("totalAmount")) && Objects.nonNull(data.get("totalCount"))) {
result = this.clothoCenterService.lending(orderApprove.getFundId(), new BigDecimal(String.valueOf(data.get("totalAmount"))), Integer.valueOf(String.valueOf(data.get("totalCount")))); result = this.clothoCenterService.lending(orderApprove.getFundId(), new BigDecimal(String.valueOf(data.get("totalAmount"))), Integer.valueOf(String.valueOf(data.get("totalCount"))));
}
} }
result = true;
} }
return result; 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