From e713c2128a48e7f60f07463695f34feb7453d387 Mon Sep 17 00:00:00 2001 From: yixian Date: Thu, 16 Jul 2020 01:55:19 +1000 Subject: [PATCH] new rate config bug for card payment --- .../manage/merchants/core/impls/ClientManagerImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java index 04620f581..6ccd85567 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java @@ -1967,7 +1967,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid }}; newConfig.put("ext_rates", extRateParams.toJSONString()); } - if (newConfig.getBigDecimal("cb_bankpay_rate_value") != null) { + if ("cb_bankpay".equalsIgnoreCase(channel)) { + if (newConfig.getBigDecimal("cb_bankpay_rate_value") != null) { + clientRateMapper.saveRate(newConfig); + } + } else { clientRateMapper.saveRate(newConfig); } logger.info(clientId + "的" + channel + "费率设置成功");