|
@@ -39,9 +39,9 @@
|
|
|
</select>
|
|
|
<select id="getContactsMemberList" resultType="com.dragon.tj.portal.common.vo.message.ContactMemberVO">
|
|
|
SELECT b.member_id as 'idCard',c.`name` as 'userName' from message_info a
|
|
|
- INNER JOIN message_info_scope b on a.id = b.message_info_id
|
|
|
+ INNER JOIN message_info_scope b on a.id = b.message_info_id and b.member_id != #{idCard}
|
|
|
LEFT JOIN sys_user c on b.member_id = c.idcard
|
|
|
- where create_by = #{idCard} and a.del_flag = 0
|
|
|
+ where create_by = #{idCard} and a.del_flag = 0 and a.message_type = 2
|
|
|
GROUP BY member_id
|
|
|
ORDER BY COUNT(1) DESC
|
|
|
limit #{limit}
|