|
@@ -1323,7 +1323,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
@Override
|
|
|
public IPage<StudentWrapper.StudentList> userPage(IPage<StudentWrapper.StudentList> page, StudentWrapper.StudentQuery queryInfo) {
|
|
|
|
|
|
- queryInfo.setStatusList(Arrays.asList(StudentMusicGroupStatusEnum.NORMAL, StudentMusicGroupStatusEnum.QUIT, StudentMusicGroupStatusEnum.QUIT_SCHOOL));
|
|
|
+ if (CollectionUtils.isEmpty(queryInfo.getStatusList())) {
|
|
|
+ queryInfo.setStatusList(Arrays.asList(StudentMusicGroupStatusEnum.NORMAL, StudentMusicGroupStatusEnum.QUIT, StudentMusicGroupStatusEnum.QUIT_SCHOOL));
|
|
|
+ }
|
|
|
List<StudentWrapper.StudentList> studentLists = studentPlusMapper.userPage(page, queryInfo);
|
|
|
|
|
|
if (CollectionUtils.isEmpty(studentLists)) {
|
|
@@ -1364,7 +1366,6 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
// 查询作业
|
|
|
studentHomeworkData(studentLists, studentAttendanceQuery);
|
|
|
|
|
|
-
|
|
|
return page.setRecords(studentLists);
|
|
|
}
|
|
|
|
|
@@ -1381,7 +1382,7 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
StudentWrapper.StudentDetail studentDetail = JSON.parseObject(JSON.toJSONString(studentList), StudentWrapper.StudentDetail.class);
|
|
|
|
|
|
// 查询学生信息
|
|
|
- StudentRegistration studentRegister = studentRegistrationService.getStudentRegister(queryInfo.getMusicGroupId().toString(), queryInfo.getStudentId());
|
|
|
+ StudentRegistration studentRegister = studentRegistrationService.getStudentRegister(queryInfo.getMusicGroupId(), queryInfo.getStudentId());
|
|
|
if (studentRegister == null) {
|
|
|
return studentDetail;
|
|
|
}
|
|
@@ -1402,8 +1403,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
.cooperationOrganId(queryInfo.getCooperationOrganId())
|
|
|
.studentId(queryInfo.getStudentId())
|
|
|
.musicGroupId(queryInfo.getMusicGroupId())
|
|
|
- .startTime(DateUtil.toDate(DateUtil.getStartTerm(new Date())))
|
|
|
- .endTime(DateUtil.toDateTime(DateUtil.getEndTerm(new Date()) + " 23:59:59"))
|
|
|
+ // 时间为本学期
|
|
|
+// .startTime(DateUtil.toDate(DateUtil.getStartTerm(new Date())))
|
|
|
+// .endTime(DateUtil.toDateTime(DateUtil.getEndTerm(new Date()) + " 23:59:59"))
|
|
|
.build();
|
|
|
List<SchoolActivityWrapper.SchoolActivity> schoolActivities = schoolActivityMapper.selectPage(new Page<>(1, -1), build);
|
|
|
if (!CollectionUtils.isEmpty(schoolActivities)) {
|
|
@@ -1412,12 +1414,13 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
|
|
|
// 在团状态
|
|
|
MusicGroupQuit musicGroupQuit = musicGroupQuitDao
|
|
|
- .queryByUserIdAndMusicGroupId(queryInfo.getStudentId(), queryInfo.getMusicGroupId().toString());
|
|
|
+ .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)) {
|