|
@@ -277,6 +277,9 @@ public class CoursesGroupServiceImpl extends BaseServiceImpl<Long, CoursesGroup>
|
|
|
if(!CollectionUtils.isEmpty(groupStudents)){
|
|
|
List<String> userNames = groupStudents.stream().map(ClassGroupStudentMapper::getUserName).collect(Collectors.toList());
|
|
|
groupCard.setStudentNames(StringUtils.join(userNames,","));
|
|
|
+ groupCard.setStudentIsFull(groupStudents.size()>=teacherCourseGroup.getMaxStudentNum()?1:0);
|
|
|
+ }else{
|
|
|
+ groupCard.setStudentIsFull(3);
|
|
|
}
|
|
|
groupCards.add(groupCard);
|
|
|
}
|