|
|
|
@ -108,7 +108,7 @@ public class NoticeManageImpl implements NoticeManage {
|
|
|
|
|
notice.put("create_name", manager.getString("display_name"));
|
|
|
|
|
if (!notice.getBoolean("merchants_type")){
|
|
|
|
|
StringBuilder sendClients = new StringBuilder();
|
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClient();
|
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClientFor30Days();
|
|
|
|
|
clients.forEach(c -> {
|
|
|
|
|
if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){
|
|
|
|
|
String p = c.getString("client_moniker")+",";
|
|
|
|
@ -146,7 +146,7 @@ public class NoticeManageImpl implements NoticeManage {
|
|
|
|
|
if (!notice.getBoolean("merchants_type")){
|
|
|
|
|
StringBuilder sendClients = new StringBuilder();
|
|
|
|
|
|
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClient();
|
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClientFor30Days();
|
|
|
|
|
clients.forEach(c -> {
|
|
|
|
|
if (c.getInteger("parent_client_id")==null || c.getInteger("parent_client_id")!=9){
|
|
|
|
|
String p = c.getString("client_moniker")+",";
|
|
|
|
@ -292,8 +292,7 @@ public class NoticeManageImpl implements NoticeManage {
|
|
|
|
|
public int listNoticeClients(String noticeId) {
|
|
|
|
|
JSONObject params = new JSONObject();
|
|
|
|
|
params.put("notice_id", noticeId);
|
|
|
|
|
int clients = noticePartnerMapper.countClientsByNoticeId(params);
|
|
|
|
|
return clients;
|
|
|
|
|
return noticePartnerMapper.countClientsByNoticeId(params);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|