Commit 43960b1e authored by liwenbin's avatar liwenbin

增加期数额度限制字段

parent 71fdf33e
......@@ -52,6 +52,8 @@ public class AssetForm implements Serializable{
private String refuseReason;
private String sceneId;
private String amountTermLimits;
public Asset transToAsset() {
Asset asset = new Asset();
......@@ -85,6 +87,7 @@ public class AssetForm implements Serializable{
notifyMap.put("exData", this.exData);
notifyMap.put("otherInformation", this.otherInformation);
notifyMap.put("financeProducts", this.financeProducts);
notifyMap.put("amountTermLimits", this.amountTermLimits);
Map<String, Object> dataMap = new HashMap<>();
// 目前通知资金方可能有3个模型分
......
......@@ -28,7 +28,7 @@ public class NotifyServiceImpl implements INotifyService{
private Boolean isDebug;
@Value("${business.flow.url}")
private String businessFlowURL;
@Autowired
private IHttpService httpService;
@Autowired
......@@ -46,7 +46,7 @@ public class NotifyServiceImpl implements INotifyService{
}
Map<String, String> response = httpService.postHasResponse(assetForm.getCallbackUrl(), notifyMap);
log.info("通知资金系统结果结束, uuid : {}, bizNo : {}, assetNo : {}, callbackUrl : {}, notifyForm : {}, response : {}", assetForm.getUuid(), assetForm.getBizNo(), assetForm.getAssetNo(), assetForm.getCallbackUrl(), JSON.toJSONString(notifyMap), JSON.toJSONString(response));
if(response==null || response.size()==0 || !"200".equals(response.get("statusCode")) || (!"success".equals(response.get("response")) && 0 != JSONObject.parseObject(response.get("response")).getInteger("code").intValue())) {
if(response==null || response.size()==0 || !"200".equals(response.get("statusCode")) || (!"success".equals(response.get("response")) && (!JSONObject.isValidObject(response.get("response")) || 0 != JSONObject.parseObject(response.get("response")).getInteger("code").intValue()))) {
throw new QGException(QGExceptionType.NOTIFY_FUND_SERVER_ERROR, assetForm.getUuid(), assetForm.getBizNo(), assetForm.getAssetNo());
}
}
......
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