From eaf26c265f8882b2e100428d942ac377330cc114 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Thu, 04 Aug 2022 18:47:07 +0800 Subject: [PATCH] 新增:消息盒子功能 --- snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/mapper/mapping/BlogArticleMapper.xml | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/mapper/mapping/BlogArticleMapper.xml b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/mapper/mapping/BlogArticleMapper.xml index e71b9ef..2f17529 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/mapper/mapping/BlogArticleMapper.xml +++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/mapper/mapping/BlogArticleMapper.xml @@ -23,6 +23,9 @@ a.publish_date, a.is_top, a.editor_status, + a.is_allowed_comment, + a.jump_url as jumpURL, + a.update_date, a.create_date </sql> @@ -34,9 +37,11 @@ <choose> <when test="param.typeId != null"> AND a.article_type_id = #{param.typeId} + order by a.is_top desc,a.top_value asc , a.create_date desc </when> <otherwise> AND a.article_type_id != 4 + order by a.is_top desc,a.top_value asc , a.update_date desc </otherwise> </choose> </trim> @@ -46,7 +51,7 @@ <select id="searchList" resultType="vip.xiaonuo.modular.blogarticle.entity.BlogArticleVo"> select <include refid="Base_Column_List"/> - ,IFNULL("",CONCAT("/",f2.file_bucket,"/",f2.file_object_name)) as coverFileURL + ,IF(a.cover_file_id is not null,CONCAT("/",f2.file_bucket,"/",f2.file_object_name),"") as coverFileURL ,t.type_name as articleTypeName from blog_article a @@ -61,8 +66,6 @@ on f2.id=a.cover_file_id <include refid="queryListCondition"/> - - order by a.is_top desc,a.top_value asc , a.create_date desc limit #{param.pageNo},#{param.pageSize} </select> -- Gitblit v1.9.1