|
|
@@ -231,7 +231,7 @@ public class ParticipantService {
|
|
|
*/
|
|
|
public void awardByAwardId(Long awardId, Long specialtyId) {
|
|
|
// String award = awardRepo.findById(awardId).orElseThrow(new BusinessException("无奖项")).getName();
|
|
|
- List<Programme> programmes = programmeRepo.findAllByAwardIdAndSpecialtyId(awardId, specialtyId);
|
|
|
+ List<Programme> programmes = programmeRepo.findAllByAwardIdAndParentSpecialtyId(awardId, specialtyId);
|
|
|
Map<Long, String> programmeMap = programmes.stream()
|
|
|
.collect(Collectors.toMap(Programme::getId, Programme::getName));
|
|
|
List<Participant> participants = participantRepo.findAllByProgrammeIdIn(programmeMap.keySet());
|