修改聊天室功能

This commit is contained in:
yangjun 2024-07-25 10:10:53 +08:00
parent 82d48a1800
commit 681de5866a
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ public class ChatConversationServiceImpl extends ServiceImpl<ChatConversationDao
if(chatConversation!=null){
return chatConversation;
}
return baseMapper.selectOne(new QueryWrapper<ChatConversation>().eq("focused_user_id", userId).eq("user_id", focusedUserId));
return baseMapper.selectOne(new QueryWrapper<ChatConversation>().eq("focused_user_id", focusedUserId).eq("user_id", userId));
}

View File

@ -31,7 +31,7 @@
<if test="null != userId and '' != userId">
user_id,
</if>
<if test="null != focusedUserId and '' != focusedUserId">
<if test="null != focusedUserId">
focused_user_id,
</if>
<if test="null != status and '' != status">
@ -51,7 +51,7 @@
<if test="null != userId and '' != userId">
#{userId},
</if>
<if test="null != focusedUserId and '' != focusedUserId">
<if test="null != focusedUserId">
#{focusedUserId},
</if>
<if test="null != status and '' != status">