lrf 3 kuukautta sitten
vanhempi
commit
5d6173250c
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      src/controller/match/matchExt.controller.ts

+ 3 - 2
src/controller/match/matchExt.controller.ts

@@ -473,7 +473,7 @@ export class MatchExtController implements BaseController {
   }
 
   @Get('/step5/list/:match_id', { routerName: '决赛阶段-组织决赛-决赛人员名单' })
-  async step5NameList(@Param('match_id') match_id: string) {
+  async step5NameList(@Param('match_id') match_id: string, @Query() query: object) {
     /**
      * 检查内容:
      *  赛事拓展表:
@@ -485,7 +485,8 @@ export class MatchExtController implements BaseController {
      */
     await this.service.checkMatchExtStatus(match_id, '5');
     // 决赛名单,根据顺序升序
-    const { data: list } = await this.matchRegService.query({ match_id, ext_status: '5' }, { order: { final_order_no: 'ASC' } });
+    const final_confirm = get(query, 'final_confirm')
+    const { data: list } = await this.matchRegService.query({ match_id, ext_status: '5', final_confirm }, { order: { final_order_no: 'ASC' } });
     return list;
   }