From ae6d2af141f18e40956d98cea765fec838985817 Mon Sep 17 00:00:00 2001 From: jyy <935090232@qq.com> Date: Mon, 25 Jan 2021 10:57:52 +0800 Subject: [PATCH] 1、新增默认头像设置 2、修改知识库bug 3、修改点赞bug --- zq-erp/src/main/resources/mybatis/mapper/hive/ArticleDao.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/ArticleDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/ArticleDao.xml index 40be119..25f544d 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/ArticleDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/ArticleDao.xml @@ -437,4 +437,18 @@ </if> order by type_id,sort,createtiem desc </select> + + <select id="selectApiArticleListInPage" resultMap="ArticleMap"> + select * from article a + inner join article_type b on a.type_id=b.id + where a.type_id=#{record.typeId} or find_in_set(#{record.typeId}, b.parent_ids) + order by a.createtiem desc + <if test="pageVo !=null"><!-- 判断pageVo对象是否为空 --> + <if test="pageVo.offset >=0 and pageVo.limit >0"> + limit + #{pageVo.offset},#{pageVo.limit} + </if> + </if> + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.1