From 70097d968795fcc872095c42f7b7bba618baaaf9 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Tue, 02 Aug 2022 17:34:56 +0800 Subject: [PATCH] 外链跳转 --- snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticleVo.java | 4 ++++ snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/mapper/mapping/BlogArticleMapper.xml | 3 ++- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticleVo.java b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticleVo.java index 3a3f4e7..af11f3f 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticleVo.java +++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticleVo.java @@ -119,5 +119,9 @@ */ private Integer isAnyUpdate; + /** + * 外链跳转 + */ + private String jumpURL; } 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 789dba3..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 @@ -24,6 +24,7 @@ a.is_top, a.editor_status, a.is_allowed_comment, + a.jump_url as jumpURL, a.update_date, a.create_date </sql> @@ -50,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 -- Gitblit v1.9.1