fix: 用户导入导出路径调整同步

This commit is contained in:
hxr
2024-05-13 22:52:08 +08:00
parent d496d5a6ef
commit 17395a171d

View File

@@ -148,7 +148,7 @@ public class SysUserController {
}
@Operation(summary = "导入用户")
@PostMapping("/_import")
@PostMapping("/import")
public Result importUsers(@Parameter(description = "部门ID") Long deptId, MultipartFile file) throws IOException {
UserImportListener listener = new UserImportListener(deptId);
String msg = ExcelUtils.importExcel(file.getInputStream(), UserImportVO.class, listener);
@@ -156,7 +156,7 @@ public class SysUserController {
}
@Operation(summary = "导出用户")
@GetMapping("/_export")
@GetMapping("/export")
public void exportUsers(UserPageQuery queryParams, HttpServletResponse response) throws IOException {
String fileName = "用户列表.xlsx";
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");