|
@@ -1405,11 +1405,6 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
StudentWrapper.StudentList studentList = studentListIPage.getRecords().get(0);
|
|
|
StudentWrapper.StudentDetail studentDetail = JSON.parseObject(JSON.toJSONString(studentList), StudentWrapper.StudentDetail.class);
|
|
|
|
|
|
- // 查询学生信息
|
|
|
- StudentRegistration studentRegister = studentRegistrationService.getStudentRegister(queryInfo.getMusicGroupId(), queryInfo.getStudentId());
|
|
|
- if (studentRegister == null) {
|
|
|
- return studentDetail;
|
|
|
- }
|
|
|
// 学校分部
|
|
|
CooperationOrgan cooperationOrgan = cooperationOrganService.get(queryInfo.getCooperationOrganId());
|
|
|
studentDetail.setOrganId(cooperationOrgan.getOrganId());
|
|
@@ -1439,22 +1434,29 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
studentDetail.setArtPracticeCount(schoolActivities.size());
|
|
|
}
|
|
|
|
|
|
- // 在团状态
|
|
|
- MusicGroupQuit musicGroupQuit = musicGroupQuitDao
|
|
|
- .queryByUserIdAndMusicGroupId(queryInfo.getStudentId(), queryInfo.getMusicGroupId());
|
|
|
-
|
|
|
- if (StudentMusicGroupStatusEnum.APPLY.equals(studentRegister.getMusicGroupStatus())) {
|
|
|
- studentDetail.setInGroupStatus(EInGroupStatus.APPLY);
|
|
|
- } else if (StudentMusicGroupStatusEnum.QUIT.equals(studentRegister.getMusicGroupStatus())) {
|
|
|
- studentDetail.setInGroupStatus(EInGroupStatus.OUT);
|
|
|
- studentDetail.setQuitTime(musicGroupQuit.getQuitDate());
|
|
|
- } else if (StudentMusicGroupStatusEnum.NORMAL.equals(studentRegister.getMusicGroupStatus())) {
|
|
|
- studentDetail.setInGroupStatus(EInGroupStatus.IN);
|
|
|
- if (musicGroupQuit != null && musicGroupQuit.getStatus().equals(ApprovalStatus.PROCESSING)) {
|
|
|
- studentDetail.setInGroupStatus(EInGroupStatus.APPLY_OUT);
|
|
|
+ // 查询学生信息
|
|
|
+ if (queryInfo.getMusicGroupId() != null) {
|
|
|
+ StudentRegistration studentRegister = studentRegistrationService.getStudentRegister(queryInfo.getMusicGroupId(), queryInfo.getStudentId());
|
|
|
+ if (studentRegister == null) {
|
|
|
+ return studentDetail;
|
|
|
+ }
|
|
|
+ // 在团状态
|
|
|
+ MusicGroupQuit musicGroupQuit = musicGroupQuitDao
|
|
|
+ .queryByUserIdAndMusicGroupId(queryInfo.getStudentId(), queryInfo.getMusicGroupId());
|
|
|
+
|
|
|
+ if (StudentMusicGroupStatusEnum.APPLY.equals(studentRegister.getMusicGroupStatus())) {
|
|
|
+ studentDetail.setInGroupStatus(EInGroupStatus.APPLY);
|
|
|
+ } else if (StudentMusicGroupStatusEnum.QUIT.equals(studentRegister.getMusicGroupStatus())) {
|
|
|
+ studentDetail.setInGroupStatus(EInGroupStatus.OUT);
|
|
|
+ studentDetail.setQuitTime(musicGroupQuit.getQuitDate());
|
|
|
+ } else if (StudentMusicGroupStatusEnum.NORMAL.equals(studentRegister.getMusicGroupStatus())) {
|
|
|
+ studentDetail.setInGroupStatus(EInGroupStatus.IN);
|
|
|
+ if (musicGroupQuit != null && musicGroupQuit.getStatus().equals(ApprovalStatus.PROCESSING)) {
|
|
|
+ studentDetail.setInGroupStatus(EInGroupStatus.APPLY_OUT);
|
|
|
+ }
|
|
|
+ } else if (StudentMusicGroupStatusEnum.QUIT_SCHOOL.equals(studentRegister.getMusicGroupStatus())) {
|
|
|
+ studentDetail.setInGroupStatus(EInGroupStatus.QUIT_SCHOOL);
|
|
|
}
|
|
|
- } else if (StudentMusicGroupStatusEnum.QUIT_SCHOOL.equals(studentRegister.getMusicGroupStatus())) {
|
|
|
- studentDetail.setInGroupStatus(EInGroupStatus.QUIT_SCHOOL);
|
|
|
}
|
|
|
|
|
|
return studentDetail;
|