소스 검색

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