diff --git a/src/main/java/club/joylink/rtss/services/completition/CompetitionPracticalService.java b/src/main/java/club/joylink/rtss/services/completition/CompetitionPracticalService.java index d5a458ee8..fb0577c86 100644 --- a/src/main/java/club/joylink/rtss/services/completition/CompetitionPracticalService.java +++ b/src/main/java/club/joylink/rtss/services/completition/CompetitionPracticalService.java @@ -523,10 +523,10 @@ public class CompetitionPracticalService implements ICompetitionPracticalService @Override public List queryVoiceRecordUsers(Long competitionId) { - CompetitionRecordExample example = new CompetitionRecordExample(); + CompetitionVoiceRecordExample example = new CompetitionVoiceRecordExample(); example.createCriteria().andCompetitionIdEqualTo(competitionId); - List records = competitionRecordDAO.selectByExample(example); - List userIds = records.stream().map(CompetitionRecord::getUserId).collect(Collectors.toList()); + List records = competitionVoiceRecordDAO.selectByExample(example); + List userIds = records.stream().map(CompetitionVoiceRecord::getUserId).collect(Collectors.toList()); return iSysUserService.queryUsers(userIds); }