from tab_haoban_group_chat_hm_relation where chat_hm_id = #{chatHmId} and ((delete_flag = 0 and status_flag = 1) or (status_flag = 2 and delete_flag = 1))
</select>
<selectid="listChatHmId"resultType="long">
select
distinct(chat_hm_id)
...
...
@@ -94,6 +100,6 @@
#{id}
</foreach>
and relation.delete_flag = 0 and relation.status_flag = 1 and chat.delete_flag = 0 and chat.chat_status in (0,1,2,3)
and chat.`hm_add_status` = 1 GROUP BY relation.`chat_hm_id`
and chat.total_count <![CDATA[<]]> 200 GROUP BY relation.`chat_hm_id`