From 45e0d59be08f995698b9c0f1d9403e3e879b3647 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Fri, 11 Jun 2021 14:28:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SysServicesTopicServiceImp.java | 1 + .../mapper/custom/SysServicesTopicMapper.xml | 2 +- stdiet-ui/src/store/modules/message.js | 61 +++++++++++-- .../custom/message/messageBrowser/index.vue | 87 +++++++++++++------ .../custom/message/userInfo/recipesPlan.vue | 4 +- 5 files changed, 118 insertions(+), 37 deletions(-) diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/service/impl/SysServicesTopicServiceImp.java b/stdiet-custom/src/main/java/com/stdiet/custom/service/impl/SysServicesTopicServiceImp.java index 10496bdd3..fbc57d652 100644 --- a/stdiet-custom/src/main/java/com/stdiet/custom/service/impl/SysServicesTopicServiceImp.java +++ b/stdiet-custom/src/main/java/com/stdiet/custom/service/impl/SysServicesTopicServiceImp.java @@ -170,6 +170,7 @@ public class SysServicesTopicServiceImp implements ISysServicesTopicService { JSONObject dataObj = new JSONObject(); dataObj.put("count", counts.get(i).getCount()); dataObj.put("topicId", topic.getTopicId()); + dataObj.put("uid", topic.getFromUid()); JSONObject msgObj = new JSONObject(); msgObj.put("type", WsUtils.WS_TYPE_NEW_CUSTOMER_REPLY); diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysServicesTopicMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysServicesTopicMapper.xml index 02171af65..272a804dc 100644 --- a/stdiet-custom/src/main/resources/mapper/custom/SysServicesTopicMapper.xml +++ b/stdiet-custom/src/main/resources/mapper/custom/SysServicesTopicMapper.xml @@ -36,8 +36,8 @@ ) AS status LEFT JOIN (SELECT topic_id, uid, del_flag FROM sys_services_topic ) AS topic USING(topic_id) WHERE del_flag = 0 - ORDER BY `read` ASC, update_time DESC ) AS userList GROUP BY uid + ORDER BY `read` ASC, update_time DESC