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;