dev-v2 #3

Merged
bunny merged 122 commits from dev-v2 into master-v2 2024-03-30 23:40:58 +08:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 793030157f - Show all commits

View File

@ -30,9 +30,8 @@ public class CategoryController {
@Operation(summary = "导出数据", description = "导出数据")
@GetMapping(value = "/exportData")
public Result<String> exportData(HttpServletResponse response) {
public void exportData(HttpServletResponse response) {
categoryService.exportData(response);
return Result.success();
}
@Operation(summary = "导入功能", description = "导入功能")

View File

@ -61,7 +61,7 @@ public class CategoryServiceImpl implements CategoryService {
response.setCharacterEncoding("utf-8");
String filename = URLEncoder.encode("分类数据", StandardCharsets.UTF_8);
response.setHeader("Content-dispostion", "attachment;filename=" + filename + ".xlsx");
response.setHeader("Content-disposition", "attachment;filename=" + filename + ".xlsx");
// 查询数据库中的数据
List<Category> categoryList = categoryMapper.selectAll();