update m2pool 客服聊天室列表页面不再展示不存在聊天信息的聊天室
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.m2pool.chat.service.impl;
|
package com.m2pool.chat.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.json.JSONUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
@@ -64,7 +65,6 @@ public class ChatRoomServiceImpl extends ServiceImpl<ChatRoomMapper, ChatRoom> i
|
|||||||
//1.查找当前客服对应的聊天室
|
//1.查找当前客服对应的聊天室
|
||||||
roomList = chatRoomMapper.findRoomList(ids,roomPageVo.getSendDateTime());
|
roomList = chatRoomMapper.findRoomList(ids,roomPageVo.getSendDateTime());
|
||||||
|
|
||||||
|
|
||||||
// if (roomList.isEmpty()){
|
// if (roomList.isEmpty()){
|
||||||
// TableDataInfo tableDataInfo = new TableDataInfo();
|
// TableDataInfo tableDataInfo = new TableDataInfo();
|
||||||
// tableDataInfo.setCode(HttpStatus.ERROR);
|
// tableDataInfo.setCode(HttpStatus.ERROR);
|
||||||
|
|||||||
@@ -34,12 +34,8 @@
|
|||||||
GROUP BY send_email
|
GROUP BY send_email
|
||||||
</select>
|
</select>
|
||||||
<select id="findRoomIdsByCustomerEmail" resultType="java.lang.Long">
|
<select id="findRoomIdsByCustomerEmail" resultType="java.lang.Long">
|
||||||
select room_id from chat_message where send_email = #{userEmail} group by room_id
|
select room_id from chat_message group by room_id
|
||||||
UNION
|
UNION
|
||||||
select room_id from chat_message_history where send_email = #{userEmail} group by room_id
|
select room_id from chat_message_history group by room_id
|
||||||
-- 不再展示不存在聊天信息的聊天室
|
|
||||||
-- UNION
|
|
||||||
-- select id as room_id from chat_room where user_two_email = #{userEmail}
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user