Commit 2ebe565e by 徐高华

通知

parent d67bb239
...@@ -78,9 +78,22 @@ public class NoticeMessageInfoDTO implements Serializable { ...@@ -78,9 +78,22 @@ public class NoticeMessageInfoDTO implements Serializable {
private String pageType; private String pageType;
/** /**
* 关联的具体业务消息id
*/
private String relationId;
/**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public String getRelationId() {
return relationId;
}
public void setRelationId(String relationId) {
this.relationId = relationId;
}
public String getPageType() { public String getPageType() {
return pageType; return pageType;
} }
......
...@@ -38,10 +38,7 @@ public enum NoticeMessageTypeEnum { ...@@ -38,10 +38,7 @@ public enum NoticeMessageTypeEnum {
GROUP_CHAT_PLAN(2015, "社群群发任务通知", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanGroupChatPlan", "/pages/route/index?pageType=", "hbapp_canvas_group_send", "haobanGroupChatPlan", "haobanNotice"), GROUP_CHAT_PLAN(2015, "社群群发任务通知", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanGroupChatPlan", "/pages/route/index?pageType=", "hbapp_canvas_group_send", "haobanGroupChatPlan", "haobanNotice"),
MASS_GROUP_SEND_PLAN(2016, "客户群发任务通知", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanMassGroupSendPlan", "/pages/route/index?pageType=", "hbapp_canvas_custom_send", "haobanMassGroupSendPlan", "haobanNotice"), MASS_GROUP_SEND_PLAN(2016, "客户群发任务通知", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanMassGroupSendPlan", "/pages/route/index?pageType=", "hbapp_canvas_custom_send", "haobanMassGroupSendPlan", "haobanNotice"),
TEL_TASK_CANVAS(2017, "话务任务通知", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanTelTaskCanvas", "/pages/route/index?pageType=", "hbapp_canvas_task", "haobanTelTaskCanvas", "haobanNotice"), TEL_TASK_CANVAS(2017, "话务任务通知", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanTelTaskCanvas", "/pages/route/index?pageType=", "hbapp_canvas_task", "haobanTelTaskCanvas", "haobanNotice"),
HB_TASK_TO_DO_LIST_NOTICE_ALL(2018, "任务执行提醒", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanTaskTodoNotice", "/pages/route/index?pageType=", "workbench", "haobanTaskTodoNotice", "haobanNotice"), HB_TASK_TO_DO_LIST_NOTICE(2018, "任务执行提醒", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanTaskTodoNotice", "/pages/route/index?pageType=", "", "haobanTaskTodoNotice", "haobanNotice"),
HB_TASK_TO_DO_LIST_NOTICE_CHAT(2019, "任务执行提醒", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanTaskTodoNotice", "/pages/route/index?pageType=", "hbapp_canvas_group_send_list", "haobanTaskTodoNotice", "haobanNotice"),
HB_TASK_TO_DO_LIST_NOTICE_MASS(2020, "任务执行提醒", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanTaskTodoNotice", "/pages/route/index?pageType=", "hbapp_canvas_custom_send_list", "haobanTaskTodoNotice", "haobanNotice"),
HB_TASK_TO_DO_LIST_NOTICE_TEL_TASK(2021, "任务执行提醒", NoticeMessageCategoryTypeEnum.TASK.getType(), "haobanTaskTodoNotice", "/pages/route/index?pageType=", "hbapp_canvas_task_list", "haobanTaskTodoNotice", "haobanNotice"),
......
...@@ -455,7 +455,20 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService { ...@@ -455,7 +455,20 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
if (retPage != null && CollectionUtils.isNotEmpty(tPage.getResult())) { if (retPage != null && CollectionUtils.isNotEmpty(tPage.getResult())) {
tPage.getResult().forEach(mid -> { tPage.getResult().forEach(mid -> {
NoticeMessageTypeEnum messageTypeEnum = NoticeMessageTypeEnum.getByType(mid.getMessageType()); NoticeMessageTypeEnum messageTypeEnum = NoticeMessageTypeEnum.getByType(mid.getMessageType());
if(messageTypeEnum.getMessageCode().equals("haobanTaskTodoNotice")) {
String relationId = mid.getRelationId() ;
if("chat".equals(relationId)) {
mid.setPageType("hbapp_canvas_group_send_list");
}else if("mass".equals(relationId)) {
mid.setPageType("hbapp_canvas_custom_send_list");
}else if("tel".equals(relationId)) {
mid.setPageType("hbapp_canvas_task_list");
}else {
mid.setPageType("workbench");
}
}else {
mid.setPageType(messageTypeEnum.getPageType()); mid.setPageType(messageTypeEnum.getPageType());
}
}); });
} }
return ServiceResponse.success(tPage); return ServiceResponse.success(tPage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment