From 45e45ff70ba7cd7889f76cbf489d6bf012a4f84d Mon Sep 17 00:00:00 2001 From: hhhyyq <hhhyyq@163.com> Date: 星期三, 17 三月 2021 00:17:26 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master --- springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java index fdb557d..5fcd0b1 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java @@ -1,6 +1,7 @@ package com.panzhihua.service_user.api; import com.panzhihua.common.model.dtos.PageDTO; +import com.panzhihua.common.model.dtos.community.ExportUserDTO; import com.panzhihua.common.model.dtos.community.NoticeReadDTO; import com.panzhihua.common.model.dtos.user.EexcelUserDTO; import com.panzhihua.common.model.dtos.user.PageFeedBackDTO; @@ -584,4 +585,14 @@ } return R.ok(communityUserInfoVO); } + + /** + * 用户搜索了就下载搜索的用户否则下载所有用户 + * @param exportUserDTO 用户搜索内容 + * @return List<EexcelUserDTO> excel内容 + */ + @PostMapping("export") + public R export(@RequestBody ExportUserDTO exportUserDTO){ + return userService.export(exportUserDTO); + } } -- Gitblit v1.7.1