master
wangning 7 years ago
commit 78a80bbf01

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

Loading…
Cancel
Save