|
@@ -481,7 +481,7 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
resultMap.put("add", studentManageDao.countAddNum(musicGroupId));
|
|
resultMap.put("add", studentManageDao.countAddNum(musicGroupId));
|
|
//未完成vip、网管课学员数量/该乐团在读学员人数*100%
|
|
//未完成vip、网管课学员数量/该乐团在读学员人数*100%
|
|
List<StudentRegistration> studentRegistrations = studentRegistrationDao.getMusicGroupStu(musicGroupId);
|
|
List<StudentRegistration> studentRegistrations = studentRegistrationDao.getMusicGroupStu(musicGroupId);
|
|
- List<Integer> userIds = studentRegistrations.stream().filter(e -> e.getMusicGroupStatus() != StudentMusicGroupStatusEnum.QUIT).map(StudentRegistration::getUserId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<Integer> userIds = studentRegistrations.stream().filter(e -> e.getMusicGroupStatus() == StudentMusicGroupStatusEnum.NORMAL).map(StudentRegistration::getUserId).collect(Collectors.toList());
|
|
if(userIds.size() == 0){
|
|
if(userIds.size() == 0){
|
|
resultMap.put("courseRate","0.00%");
|
|
resultMap.put("courseRate","0.00%");
|
|
return resultMap;
|
|
return resultMap;
|