From 37ce70cd8326cee950a509dbc10a542bb05f56cd Mon Sep 17 00:00:00 2001 From: Todking Date: Mon, 10 Jan 2022 18:26:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20a+kyc=E9=80=9A=E7=9F=A5=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?bd=E6=98=BE=E7=A4=BA=E4=BB=A5=E5=8F=8A=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/Impl/ApsNoticeClientsServiceImpl.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/apsKYC/domain/service/Impl/ApsNoticeClientsServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/apsKYC/domain/service/Impl/ApsNoticeClientsServiceImpl.java index a495bd6ba..a3c9ecf91 100644 --- a/src/main/java/au/com/royalpay/payment/manage/apsKYC/domain/service/Impl/ApsNoticeClientsServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/apsKYC/domain/service/Impl/ApsNoticeClientsServiceImpl.java @@ -51,16 +51,8 @@ public class ApsNoticeClientsServiceImpl implements ApsNoticeClientsService { } } JSONObject clinet = clientMapper.findClientByMoniker(apsNoticeClient.getString("partner_code")); - if (clinet != null && clinet.containsKey("bd_user") && StringUtils.isNotBlank(clinet.getString("bd_user"))) { - String[] bd_users = clinet.getString("bd_user").split(","); - List bdUserName = new ArrayList<>(); - for (String bd_user : bd_users) { - JSONObject bdUser = managerMapper.findDetail(bd_user); - if (bdUser != null && bdUser.containsKey("username") && StringUtils.isNotBlank(bdUser.getString("username"))) { - bdUserName.add(bdUser.getString("username")); - } - } - apsNoticeClient.put("bd_name", bdUserName); + if (clinet != null && clinet.containsKey("bd_user_name") && StringUtils.isNotBlank(clinet.getString("bd_user_name"))) { + apsNoticeClient.put("bd_name", clinet.containsKey("bd_user_name")); } } return apsNoticeClients;