Browse Source

根据老师id查询学员列表添加出参学生id

肖玮 5 years ago
parent
commit
cb0049a255

+ 3 - 0
mec-education/src/main/java/com/ym/mec/education/resp/StudentListResp.java

@@ -29,4 +29,7 @@ public class StudentListResp implements Serializable {
 
     @ApiModelProperty(value = "声部")
     private List<String> subjectName;
+
+    @ApiModelProperty(value = "学员id")
+    private Integer studentId;
 }

+ 1 - 0
mec-education/src/main/java/com/ym/mec/education/service/impl/ClassGroupStudentMapperServiceImpl.java

@@ -175,6 +175,7 @@ public class ClassGroupStudentMapperServiceImpl extends ServiceImpl<ClassGroupSt
                 List<MusicGroup> finalMusicGroupList = musicGroupList;
                 page.getRecords().forEach(sysUser -> {
                     StudentListResp studentListResp = new StudentListResp();
+                    studentListResp.setStudentId(sysUser.getId());
                     studentListResp.setStudentName(sysUser.getRealName());
                     classGroupStudentMapperList.stream().filter
                             (classGroupStudentMapper -> classGroupStudentMapper.getUserId().