无关风月
19 小时以前 5dc40fcd64b0513150f1d8335ab849e6d8cdc28e
cloud-server-competition/src/main/java/com/dsh/competition/controller/ParticipantController.java
@@ -27,6 +27,7 @@
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
@@ -90,11 +91,12 @@
                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);