参赛选手加入编号,增加导出功能
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user