|
@@ -43,6 +43,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
WHERE (sender_id = #{userId}
|
|
|
OR receiver_id = #{userId})
|
|
|
and type = #{type}
|
|
|
+ and (
|
|
|
+ (
|
|
|
+ sender_id = #{userId} AND (
|
|
|
+ is_delete IS NULL OR is_delete != 1
|
|
|
+ )
|
|
|
+ )
|
|
|
+ OR (
|
|
|
+ receiver_id = #{userId} AND (
|
|
|
+ receiver_is_delete IS NULL OR receiver_is_delete != 1
|
|
|
+ )
|
|
|
+ )
|
|
|
+ )
|
|
|
GROUP BY chat_user_id) latest
|
|
|
JOIN community_chat_msg r ON
|
|
|
(
|