场景录音用户查询bug修改

This commit is contained in:
joylink_zhangsai 2021-05-06 17:04:15 +08:00
parent 5284177cf2
commit 79a26eb86c

View File

@ -523,10 +523,10 @@ public class CompetitionPracticalService implements ICompetitionPracticalService
@Override @Override
public List<UserVO> queryVoiceRecordUsers(Long competitionId) { public List<UserVO> queryVoiceRecordUsers(Long competitionId) {
CompetitionRecordExample example = new CompetitionRecordExample(); CompetitionVoiceRecordExample example = new CompetitionVoiceRecordExample();
example.createCriteria().andCompetitionIdEqualTo(competitionId); example.createCriteria().andCompetitionIdEqualTo(competitionId);
List<CompetitionRecord> records = competitionRecordDAO.selectByExample(example); List<CompetitionVoiceRecord> records = competitionVoiceRecordDAO.selectByExample(example);
List<Long> userIds = records.stream().map(CompetitionRecord::getUserId).collect(Collectors.toList()); List<Long> userIds = records.stream().map(CompetitionVoiceRecord::getUserId).collect(Collectors.toList());
return iSysUserService.queryUsers(userIds); return iSysUserService.queryUsers(userIds);
} }