Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
07805c52
authored
Sep 11, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
整理代码
parent
02928bbf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
saas-module/src/main/java/com/makeit/controller/plat/PlatUserController.java
saas-module/src/main/java/com/makeit/controller/plat/PlatUserController.java
View file @
07805c52
...
...
@@ -9,13 +9,16 @@ import com.makeit.common.page.PageVO;
import
com.makeit.common.response.ApiResponseEntity
;
import
com.makeit.common.response.ApiResponseUtils
;
import
com.makeit.common.vo.ExcelImportVo
;
import
com.makeit.dto.platform.auth.PlatUserImportDTO
;
import
com.makeit.enums.CodeMessageEnum
;
import
com.makeit.enums.FileSuffixEnum
;
import
com.makeit.exception.BusinessException
;
import
com.makeit.global.annotation.Action
;
import
com.makeit.module.admin.dto.plat.PlatUserDTOVO
;
import
com.makeit.module.admin.dto.plat.PlatUserQueryDTO
;
import
com.makeit.module.admin.vo.plat.PlatUserLoginVO
;
import
com.makeit.service.platform.auth.PlatUserService
;
import
com.makeit.utils.data.excel.ExcelUtil
;
import
com.makeit.vo.platform.auth.PlatPersonDTOVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -28,6 +31,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
...
...
@@ -167,5 +171,14 @@ public class PlatUserController {
ExcelImportVo
excelImportVo
=
platUserService
.
importExcel
(
excelFile
);
return
ApiResponseUtils
.
success
(
excelImportVo
);
}
@ApiOperation
(
"导出模板"
)
@PostMapping
(
"exportExcelTemplate"
)
public
ApiResponseEntity
<
Void
>
exportExcelTemplate
(
HttpServletResponse
response
)
{
ExcelUtil
.
exportTemplate
(
response
,
"人员管理导入模板"
+
FileSuffixEnum
.
EXCEL
.
getSuffix
(),
"默认"
,
PlatUserImportDTO
.
class
);
return
ApiResponseUtils
.
success
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment