Kaynağa Gözat

解决sqlbug

wanxl 1 yıl önce
ebeveyn
işleme
307378d89e

+ 1 - 1
src/main/java/com/sqx/modules/chats/respository/ChatsMapper.java

@@ -85,7 +85,7 @@ public interface ChatsMapper extends BaseMapper<Chats> {
             " <if test='userName != null and userName != \"\" '>"+
             "and (tu.phone like '%${userName}%' or c.user_name like '%${userName}%') " +
             " </if>"+
-            "and store_id =#{storeId}  and (c.store_count =0 or c.store_count is null)" +
+            "and store_id =#{storeId}  and (c.store_count !=0 or c.store_count is null)" +
             "order by c.create_time desc" +
             "</script>"})
     List<Chats> findUnRead(Long storeId, String userName, Long type, String starTime, String endTime);