Commit 56ea03df authored by suntao's avatar suntao

放款

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