完善消息列表逻辑

This commit is contained in:
huangdeliang
2021-06-11 14:28:30 +08:00
parent ffe1c18202
commit 45e0d59be0
5 changed files with 118 additions and 37 deletions

View File

@ -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);

View File

@ -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
</select>
<select id="selectTopicListByUid" parameterType="SysServicesTopic" resultMap="SysServicesTopicResult">