Преглед изворни кода

update UserContactMapper.xml

reghao пре 6 месеци
родитељ
комит
3099f29252
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      user/user-service/src/main/resources/mapper/UserContactMapper.xml

+ 1 - 1
user/user-service/src/main/resources/mapper/UserContactMapper.xml

@@ -41,7 +41,7 @@
     <select id="findByOwnerAndFriendId" resultType="cn.reghao.tnb.user.app.model.po.UserContact">
         select *
         from user_contact
-        where owner=#{owner} and friend_id=#{friendId}
+        where `status`=1 and owner=#{owner} and friend_id=#{friendId}
     </select>
     <select id="findOnlineFriends" resultType="java.lang.Long">
         select friend_id