| | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | |
| | | /** |
| | |
| | | List<ParticipantVo> filteredParticipants = new ArrayList<>(); |
| | | |
| | | for (ParticipantVo participant : participantVos) { |
| | | if (participant.getIdcard() != null && !participant.getIdcard().isEmpty()) { |
| | | // if (participant.getIdcard() != null && !participant.getIdcard().isEmpty()) { |
| | | filteredParticipants.add(participant); |
| | | } |
| | | // } |
| | | } |
| | | return ResultUtil.success(filteredParticipants); |
| | | List<ParticipantVo> collect = filteredParticipants.stream().distinct().collect(Collectors.toList()); |
| | | return ResultUtil.success(collect); |
| | | // } |
| | | |
| | | // return ResultUtil.success(participantVos); |