|
@@ -353,6 +353,23 @@ public class SMBApiServiceImpl implements SMBApiService {
|
|
|
return JSONObject.parseArray(jsonObject.getJSONArray("duebList").toString(), DuebillQueryResp.class);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public String smbLprRateQuery(String intRateTerm) {
|
|
|
+ LprRateQuery lprRateQuery = new LprRateQuery();
|
|
|
+ lprRateQuery.setMerchantId(smbConfiguration.getMerchantId());
|
|
|
+ lprRateQuery.setProductCode(smbConfiguration.getProductCode());
|
|
|
+ lprRateQuery.setSysCode(smbConfiguration.getSysCode());
|
|
|
+ lprRateQuery.setPlatformCode(smbConfiguration.getPlatformCode());
|
|
|
+ SnbRequestBean snbRequestBean = new SnbRequestBean();
|
|
|
+ snbRequestBean.setPayLoadBean(lprRateQuery);
|
|
|
+ snbRequestBean.setTransCode(TransCodeEnum.LPR_RATE_QUERY.getCode());
|
|
|
+ CommonResponse commonResponse = sendToSmb(snbRequestBean, null);
|
|
|
+ if (!SMBConstants.RESP_SUCCESS.equals(commonResponse.getRespCode())) {
|
|
|
+ throw new ValidatorException(CodeUtil.FAIL, commonResponse.getRespMsg());
|
|
|
+ }
|
|
|
+ return JSON.parseObject(commonResponse.getPayload()).getString("intRate");
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 发送业务请求到SMB 仅处理业务请求,不处理业务逻辑 业务逻辑请根据业务需求自行处理
|
|
|
*
|