فهرست منبع

1、添加教务老师字段
2、布置作业

Joburgess 5 سال پیش
والد
کامیت
fa3b1e16a6

+ 10 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/dto/CourseGroupTeacherCardDto.java

@@ -37,8 +37,18 @@ public class CourseGroupTeacherCardDto {
 
     private String studentNames;
 
+    private Integer studentIsFull;
+
     private GroupStatusEnum groupStatus;
 
+    public Integer getStudentIsFull() {
+        return studentIsFull;
+    }
+
+    public void setStudentIsFull(Integer studentIsFull) {
+        this.studentIsFull = studentIsFull;
+    }
+
     public GroupStatusEnum getGroupStatus() {
         return groupStatus;
     }

+ 3 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CoursesGroupServiceImpl.java

@@ -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);
             }