对博客进行了优化置顶,收藏,热度等操作
This commit is contained in:
@@ -2,4 +2,9 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.quinn.mapper.BlogMapper">
|
||||
|
||||
<select id="getTopBlog" resultType="com.quinn.pojo.Blog">
|
||||
select bid,title,(star + views) as views from qn_blog where sort = 0
|
||||
order by (star + views) desc limit 5;
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user