傅行帆 5 年前
父节点
当前提交
797a2c9743
共有 1 个文件被更改,包括 2 次插入8 次删除
  1. 2
    8
      src/main/resources/mapper/TaChatMapper.xml

+ 2
- 8
src/main/resources/mapper/TaChatMapper.xml 查看文件

@@ -68,14 +68,8 @@
68 68
             ta_chat t
69 69
         WHERE
70 70
         (
71
-            (
72
-                t.send_person = #{from}
73
-                AND t.receive_person = #{to}
74
-            )
75
-            OR (
76
-                t.send_person = #{to}
77
-                AND t.receive_person = #{from}
78
-            )
71
+            t.send_person = #{to}
72
+            AND t.receive_person = #{from}
79 73
         )
80 74
         AND IFNULL(t.is_read, 0) = 0
81 75
     </select>