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/controller/BlogArticleTypeOutsideController.java | 17 ++--------------- 1 files changed, 2 insertions(+), 15 deletions(-) diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/controller/BlogArticleTypeOutsideController.java b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/controller/BlogArticleTypeOutsideController.java index b8ef9e8..52cf827 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/controller/BlogArticleTypeOutsideController.java +++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/controller/BlogArticleTypeOutsideController.java @@ -24,22 +24,18 @@ */ package vip.xiaonuo.modular.blogarticletype.controller; -import cn.hutool.core.bean.BeanUtil; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import vip.xiaonuo.core.annotion.BusinessLog; -import vip.xiaonuo.core.consts.MyConstant; import vip.xiaonuo.core.enums.LogAnnotionOpTypeEnum; import vip.xiaonuo.core.pojo.response.ResponseData; import vip.xiaonuo.core.pojo.response.SuccessResponseData; -import vip.xiaonuo.modular.blogarticletype.entity.BlogArticleType; -import vip.xiaonuo.modular.blogarticletype.param.BlogArticleTypeVo; +import vip.xiaonuo.modular.blogarticletype.entity.BlogArticleTypeVo; import vip.xiaonuo.modular.blogarticletype.service.BlogArticleTypeService; import javax.annotation.Resource; import java.util.List; -import java.util.stream.Collectors; /** * blog文章分类控制器 @@ -65,16 +61,7 @@ @BusinessLog(title = "外部blog系统_blog文章分类_查询", opType = LogAnnotionOpTypeEnum.QUERY) public ResponseData queryBlogArticleType() { - List<BlogArticleTypeVo> list = blogArticleTypeService.lambdaQuery() - .eq(BlogArticleType::getIsEnable, MyConstant.Yes) - .orderByAsc(BlogArticleType::getTopValue) - .orderByDesc(BlogArticleType::getCreateDate) - .list().stream().map(e -> { - BlogArticleTypeVo vo = new BlogArticleTypeVo(); - BeanUtil.copyProperties(e, vo); - return vo; - }).collect(Collectors.toList()); - + List<BlogArticleTypeVo> list= blogArticleTypeService.listCount(); return new SuccessResponseData(list); } -- Gitblit v1.9.1