|
@@ -208,11 +208,12 @@ export class MatchRegistrationController implements BaseController {
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
- @Get('/export/:match_id', { routerName: '导出初审名单' })
|
|
|
- @ApiTags('导出初审名单')
|
|
|
- async exportList(@Param('match_id') match_id: string) {
|
|
|
+ @Get('/export/:match_id', { routerName: '导出赛事人员名单' })
|
|
|
+ @ApiTags('导出赛事人员名单')
|
|
|
+ async exportList(@Param('match_id') match_id: string, @Body() body: object) {
|
|
|
// 查询所有未被退回的报名信息
|
|
|
- const { data } = await this.service.query({ match_id, status: '0' });
|
|
|
+ const ext_status = get(body, 'ext_status', '0')
|
|
|
+ const { data } = await this.service.query({ match_id, ext_status });
|
|
|
// 没有人,提示该赛事没有报名人员,无法导出
|
|
|
if (data.length <= 0) throw new ServiceError(ErrorCode.MATCH_NO_PERSON_TO_EXPORT);
|
|
|
const match = await this.matchService.fetch({ id: match_id });
|