@@ -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