mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
禅道#1155问题修复
This commit is contained in:
+4
@@ -43,6 +43,7 @@ import javax.annotation.security.PermitAll;
|
|||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -173,6 +174,9 @@ public class UserController {
|
|||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
List<AdminUserDO> list = userService.getUserPage(exportReqVO).getList();
|
List<AdminUserDO> list = userService.getUserPage(exportReqVO).getList();
|
||||||
|
if (CollUtil.isEmpty(list)) {
|
||||||
|
ExcelUtils.write(response, "用户数据.xls", "数据", UserExportRespVO.class, new ArrayList<>());
|
||||||
|
}
|
||||||
List<UserPostDTO> userPostDTOS = postMapper.selectJoinList(UserPostDTO.class, new MPJLambdaWrapperX<PostDO>()
|
List<UserPostDTO> userPostDTOS = postMapper.selectJoinList(UserPostDTO.class, new MPJLambdaWrapperX<PostDO>()
|
||||||
.select(PostDO::getName)
|
.select(PostDO::getName)
|
||||||
.leftJoin(UserPostDO.class, UserPostDO::getPostId, PostDO::getId)
|
.leftJoin(UserPostDO.class, UserPostDO::getPostId, PostDO::getId)
|
||||||
|
|||||||
Reference in New Issue
Block a user