Commit 96599e99 by 徐高华

sql

parent 50e3e303
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<select id="getLinkCountForHm" resultType="com.gic.haoban.manage.api.dto.hm.HmLinkChatDTO"> <select id="getLinkCountForHm" resultType="com.gic.haoban.manage.api.dto.hm.HmLinkChatDTO">
select chat_hm_id chatHmId, COUNT(DISTINCT(link_id)) linkCount linkCount from tab_haoban_hm_link_chat where wx_enterprise_id = #{wxEnterpriseId} select chat_hm_id chatHmId, COUNT(DISTINCT(link_id)) linkCount from tab_haoban_hm_link_chat where wx_enterprise_id = #{wxEnterpriseId}
and chat_hm_id in and chat_hm_id in
<foreach collection="chatHmIdList" item="item" separator="," index="index" close=")" open="("> <foreach collection="chatHmIdList" item="item" separator="," index="index" close=")" open="(">
#{item} #{item}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment