|
|
@ -101,16 +101,17 @@ public class NoticeManageImpl implements NoticeManage {
|
|
|
|
notice.put("create_id", manager.getString("manager_id"));
|
|
|
|
notice.put("create_id", manager.getString("manager_id"));
|
|
|
|
notice.put("create_name", manager.getString("display_name"));
|
|
|
|
notice.put("create_name", manager.getString("display_name"));
|
|
|
|
if (!notice.getBoolean("merchants_type")){
|
|
|
|
if (!notice.getBoolean("merchants_type")){
|
|
|
|
String sendClients = "";
|
|
|
|
StringBuilder sendClients = new StringBuilder();
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClient();
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClient();
|
|
|
|
clients.forEach(c -> {
|
|
|
|
clients.forEach(c -> {
|
|
|
|
String p = c+",";
|
|
|
|
if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){
|
|
|
|
sendClients.concat(p);
|
|
|
|
String p = c.getString("client_moniker")+",";
|
|
|
|
|
|
|
|
sendClients.append(p);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (sendClients.length()>0){
|
|
|
|
if (sendClients.length()>0){
|
|
|
|
sendClients.substring(0,sendClients.length()-1);
|
|
|
|
notice.put("send_clients",sendClients.substring(0,sendClients.length()-1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
notice.put("send_clients",sendClients);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
noticeManageMapper.createNotice(notice);
|
|
|
|
noticeManageMapper.createNotice(notice);
|
|
|
|
|
|
|
|
|
|
|
|