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