|
|
@ -117,9 +117,9 @@ public class NoticeManageImpl implements NoticeManage {
|
|
|
|
notice.put("create_time", date);
|
|
|
|
notice.put("create_time", date);
|
|
|
|
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.getInteger("merchants_type") != 1){
|
|
|
|
StringBuilder sendClients = new StringBuilder();
|
|
|
|
StringBuilder sendClients = new StringBuilder();
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClientFor30Days();
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClientFor30Days(notice);
|
|
|
|
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")+",";
|
|
|
@ -177,10 +177,10 @@ public class NoticeManageImpl implements NoticeManage {
|
|
|
|
notice.put("send_id", manager.getString("manager_id"));
|
|
|
|
notice.put("send_id", manager.getString("manager_id"));
|
|
|
|
notice.put("send_name", manager.getString("display_name"));
|
|
|
|
notice.put("send_name", manager.getString("display_name"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!notice.getBoolean("merchants_type")){
|
|
|
|
if (notice.getInteger("merchants_type") != 1){
|
|
|
|
StringBuilder sendClients = new StringBuilder();
|
|
|
|
StringBuilder sendClients = new StringBuilder();
|
|
|
|
|
|
|
|
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClientFor30Days();
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClientFor30Days(notice);
|
|
|
|
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")+",";
|
|
|
|