Commit fee8f209 authored by liwenbin's avatar liwenbin

期数由你我贷给出

parent ebdee75f
...@@ -101,10 +101,10 @@ public class NiWoDaiController { ...@@ -101,10 +101,10 @@ public class NiWoDaiController {
return GlobalResponse.success(); return GlobalResponse.success();
} }
// 通过了直接通知资金系统 // 通过了直接通知资金系统
String finance = financeProductService.createSingletonFinanceProduct(vo.getApprovedAmount().toString(), NiwodaiCostant.AUDIT_TERM, AidFundConstants.FundId.NIWODAI, null); String finance = financeProductService.createSingletonFinanceProduct(vo.getApprovedAmount().toString(), String.valueOf(vo.getApproveTerm()), AidFundConstants.FundId.NIWODAI, null);
assetForm = financeProductService.checkFundResult(assetForm, finance, Long.parseLong(vo.getValidBefore())); assetForm = financeProductService.checkFundResult(assetForm, finance, Long.parseLong(vo.getValidBefore()));
assetForm.setAmount(vo.getApprovedAmount().toString()); assetForm.setAmount(vo.getApprovedAmount().toString());
assetForm.setTerm(NiwodaiCostant.AUDIT_TERM); assetForm.setTerm(String.valueOf(vo.getApproveTerm()));
notifyService.notifyFundServer(assetForm, dataMap); notifyService.notifyFundServer(assetForm, dataMap);
} }
log.info("你我贷审核进件回调结果处理完成, orderId : {}, type : {}, code : {}, timestamp : {}, data : {}", orderId, log.info("你我贷审核进件回调结果处理完成, orderId : {}, type : {}, code : {}, timestamp : {}, data : {}", orderId,
...@@ -118,7 +118,7 @@ public class NiWoDaiController { ...@@ -118,7 +118,7 @@ public class NiWoDaiController {
* @return * @return
*/ */
private boolean checkIncomingResult(NiwodaiIncomingResultResponseVO vo) { private boolean checkIncomingResult(NiwodaiIncomingResultResponseVO vo) {
if (vo == null || vo.getApprovedAmount() == null || vo.getValidBefore() == null) { if (vo == null || vo.getApprovedAmount() == null || vo.getValidBefore() == null || vo.getApproveTerm() == null) {
return false; return false;
} }
return true; return true;
......
...@@ -33,4 +33,9 @@ public class NiwodaiIncomingResultResponseVO implements Serializable { ...@@ -33,4 +33,9 @@ public class NiwodaiIncomingResultResponseVO implements Serializable {
* 额度有效期 * 额度有效期
*/ */
private String validBefore; private String validBefore;
/**
* 审批期限
*/
private Integer approveTerm;
} }
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