|
|
|
@ -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<String> 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;
|
|
|
|
|