对博客进行了优化置顶,收藏,热度等操作

This commit is contained in:
limqhz
2022-05-08 03:00:54 +08:00
parent e65206fa89
commit b505f890d4
29 changed files with 551 additions and 173 deletions

View File

@@ -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>