|
@@ -143,6 +143,16 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
|
detail.setUserStatus(UserStatusEnum.NORMAL);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // 设置学生声部乐器ID
|
|
|
+ if (StringUtils.isNotBlank(detail.getSubjectId())) {
|
|
|
+ List<Subject> subjects = subjectDao.findBySubjectByIdList(detail.getSubjectId());
|
|
|
+ // 设置声部乐器
|
|
|
+ if (org.apache.commons.collections.CollectionUtils.isNotEmpty(subjects)) {
|
|
|
+ detail.setInstrumentId(subjects.stream()
|
|
|
+ .map(Subject::getInstrumentId).filter(Objects::nonNull).map(String::valueOf).collect(Collectors.joining(",")));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
return detail;
|
|
|
}
|