From 9a4ec43f40f2c3bad5beb54caf852f8eebb4ce6e Mon Sep 17 00:00:00 2001 From: luoyang Date: Fri, 14 Jun 2019 18:04:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=80=80=E6=AC=BE=E9=A2=9D=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../manage/merchants/core/impls/ClientManagerImpl.java | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 588ecf929..7cbbb09ae 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ UTF-8 1.1.2 - 1.0.34 + 1.0.35 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 eb1780280..49f951fe1 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 @@ -1909,12 +1909,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid throw new InvalidShortIdException(); } OrgCheckUtils.checkOrgPermission(manager, client); - JSONObject update = new JSONObject(); int clientId = client.getIntValue("client_id"); BigDecimal refundCreditLine = refundLineInfo.getBigDecimal("refund_credit_line"); - update.put("client_id", clientId); - update.put("refund_credit_line", refundCreditLine); - clientMapper.update(update); + client.put("refund_credit_line", refundCreditLine); + clientMapper.update(client); clientInfoCacheSupport.clearClientCache(clientId); }