参赛选手加入编号,增加导出功能

This commit is contained in:
litianxiang
2026-02-04 13:41:09 +08:00
parent 1286e84488
commit 1decd8e258
5 changed files with 144 additions and 1 deletions

View File

@@ -163,6 +163,14 @@ public class GlobalAwardController {
return Response.success(globalAwardService.checkCode(email, code));
}
@GetMapping("/contestants/export")
@ApiOperation(value = "导出参赛者列表为Excel", notes = "导出所有参赛者信息为xlsx并触发下载")
public Response<Void> exportContestants() throws Exception {
// 将文件保存到服务端本地目录uploadDir/exports不返回文件内容给客户端
globalAwardService.saveContestantsToLocal();
return Response.success();
}
}