From f639b5bf8a20b72b782558ca01f086a4ed54c520 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Thu, 14 Jul 2022 15:27:35 +0800 Subject: [PATCH] 添加邮件回复功能 --- snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml index 8f37989..f4f32da 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml +++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml @@ -2,4 +2,33 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="vip.xiaonuo.modular.blogarticletype.mapper.BlogArticleTypeMapper"> + <select id="listCount" resultType="vip.xiaonuo.modular.blogarticletype.entity.BlogArticleTypeVo"> + SELECT + t1.id, + t1.type_name AS typeName, + t2.count + FROM + blog_article_type t1 left join + ( + SELECT + t.id, + count(t.id) count + FROM + blog_article a, + blog_article_type t + WHERE + a.article_type_id = t.id + AND a.is_enable = 1 + AND a.editor_status = 1 + AND t.is_enable = 1 + GROUP BY + t.id + ) t2 + on + t1.id = t2.id + ORDER BY + t1.top_value ASC, + t1.create_date DESC + </select> + </mapper> -- Gitblit v1.9.1