1、增加访问数量
2、主页的样式修改 3、头像自定义实现 4、注册修改为自动跳转到登录页面,登录失败友好提示,不进行跳转页面处理 5、博客增加私密的功能
This commit is contained in:
@@ -9,22 +9,21 @@
|
||||
order by (views + star) desc limit 7
|
||||
</select>
|
||||
|
||||
<select id="getBlogWithUserOrderBySort" parameterType="com.quinn.vo.MyPageParam" resultType="com.quinn.pojo.BlogWithUser">
|
||||
select a.id,a.bid,a.title,a.sort,a.views,a.author_id,a.category_id,a.category_name,a.gmt_create,a.gmt_update
|
||||
,b.username,b.avatar,
|
||||
(select count(1) from qn_star c where c.topic_id = a.bid and c.topic_category = 'BLOG') as star
|
||||
from qn_blog a,qn_user b
|
||||
where a.author_id = b.uid order by a.sort desc,a.gmt_create desc
|
||||
limit #{pageNum},#{size}
|
||||
<select id="getBlogWithUserOrderBySortCount" resultType="int">
|
||||
select count(1)
|
||||
from qn_blog a
|
||||
where (case when a.category_id = '1' then a.author_id = #{userId} else 1 end)
|
||||
</select>
|
||||
|
||||
<select id="getBlogWithUser" parameterType="com.quinn.vo.MyPageParam" resultType="com.quinn.pojo.BlogWithUser">
|
||||
<select id="getBlogWithUserOrderBySort" resultType="com.quinn.pojo.BlogWithUser">
|
||||
select a.id,a.bid,a.title,a.sort,a.views,a.author_id,a.category_id,a.category_name,a.gmt_create,a.gmt_update
|
||||
,b.username,b.avatar,
|
||||
(select count(1) from qn_star c where c.topic_id = a.bid and c.topic_category = 'BLOG') as star
|
||||
from qn_blog a,qn_user b
|
||||
where a.author_id = b.uid order by a.gmt_create desc
|
||||
limit #{pageNum},#{size}
|
||||
where a.author_id = b.uid
|
||||
and (case when a.category_id = '1' then a.author_id = #{userId} else 1 end)
|
||||
order by a.sort desc,a.gmt_create desc
|
||||
limit #{myPageParam.pageNum},#{myPageParam.size}
|
||||
</select>
|
||||
|
||||
<select id="getMyBlogs" resultType="com.quinn.pojo.BlogWithUser">
|
||||
|
||||
Reference in New Issue
Block a user