| | |
| | | @ApiOperation(value = "获取参赛人员列表", tags = {"APP-赛事活动列表", "我的二维码", "人员管理", "APP-社区世界杯"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | @ApiImplicitParam(value = "isPre(1过滤)", name = "是否过滤未实名", required = true, dataType = "int") |
| | | }) |
| | | public ResultUtil<List<ParticipantVo>> queryParticipantList(Integer isPre) { |
| | | public ResultUtil<List<ParticipantVo>> queryParticipantList() { |
| | | try { |
| | | Integer uid = tokenUtil.getUserIdFormRedis(); |
| | | if (null == uid) { |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | List<ParticipantVo> participantVos = participantService.queryParticipantList(uid); |
| | | if (isPre != null) { |
| | | // if (isPre != null) { |
| | | List<ParticipantVo> filteredParticipants = new ArrayList<>(); |
| | | |
| | | for (ParticipantVo participant : participantVos) { |
| | |
| | | } |
| | | } |
| | | return ResultUtil.success(filteredParticipants); |
| | | } |
| | | // } |
| | | |
| | | return ResultUtil.success(participantVos); |
| | | // return ResultUtil.success(participantVos); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |