From 9b5a21b93796a60c3d0775baf0c7a3d731e60ed2 Mon Sep 17 00:00:00 2001 From: "taylor.dang" Date: Mon, 20 Aug 2018 09:57:08 +0800 Subject: [PATCH] fix --- .../manage/merchants/core/impls/ClientManagerImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 e5cb2d332..4ac6c5e99 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 @@ -3776,10 +3776,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid needCheckParams.put("bank_account_no", bankAccount.getString("account_no")); } List listRiskySimilarMerchants = riskAttentionMerchantsMapper.listRiskySimilarMerchants(needCheckParams); - StringBuilder appendStr = new StringBuilder(); - listRiskySimilarMerchants.stream().forEach(json -> appendStr.append(json.getString("client_moniker")).append(",")); - appendStr.deleteCharAt(appendStr.length() - 1); if (listRiskySimilarMerchants.size() > 0) { + StringBuilder appendStr = new StringBuilder(); + listRiskySimilarMerchants.forEach(json -> appendStr.append(json.getString("client_moniker")).append(",")); + appendStr.deleteCharAt(appendStr.length() - 1); throw new BadRequestException("该商户信息已经进入系统黑名单,关联商户为【" + appendStr + "】"); }