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