Commit 9eaf4d0d by 段启岩

修复博客推荐

parent cdf78d81
...@@ -65,14 +65,5 @@ ...@@ -65,14 +65,5 @@
</foreach> </foreach>
</select> </select>
<select id="selectRelatedBlogIds">
select distinct (blog_id)
from blog_tag
where tag_id in
<foreach collection="tagIds" item="tagId" index="index" open="(" close=")" separator=",">
#{tagId}
</foreach>
</select>
</mapper> </mapper>
...@@ -2,4 +2,12 @@ ...@@ -2,4 +2,12 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.meteor.beyondclouds.modules.blog.mapper.BlogTagMapper"> <mapper namespace="cn.meteor.beyondclouds.modules.blog.mapper.BlogTagMapper">
<select id="selectRelatedBlogIds">
select distinct (blog_id)
from blog_tag
where tag_id in
<foreach collection="tagIds" item="tagId" index="index" open="(" close=")" separator=",">
#{tagId}
</foreach>
</select>
</mapper> </mapper>
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