|
@@ -1245,7 +1245,10 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
@Override
|
|
@Override
|
|
public List<IndexCloudStudySumDto> getCloudStudyStudentOverViewList(List<Integer> organIdsList) {
|
|
public List<IndexCloudStudySumDto> getCloudStudyStudentOverViewList(List<Integer> organIdsList) {
|
|
List<IndexCloudStudySumDto> list = studentDao.getCloudStudyStudentOverViewList(organIdsList);
|
|
List<IndexCloudStudySumDto> list = studentDao.getCloudStudyStudentOverViewList(organIdsList);
|
|
- Set<Integer> organIds = list.stream().map(e -> e.getOrganId()).collect(Collectors.toSet());
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(list)) {
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+ Set<Integer> organIds = list.stream().map(IndexCloudStudySumDto::getOrganId).collect(Collectors.toSet());
|
|
Map<Integer,String> organMap = MapUtil.convertMybatisMap(organizationDao.findOrganNameMapList(organIds));
|
|
Map<Integer,String> organMap = MapUtil.convertMybatisMap(organizationDao.findOrganNameMapList(organIds));
|
|
//获取待激活学员数
|
|
//获取待激活学员数
|
|
Map<Integer,Long> waitMap = MapUtil.convertIntegerMap(cloudTeacherOrderDao.getWaitActivateMap(organIdsList));
|
|
Map<Integer,Long> waitMap = MapUtil.convertIntegerMap(cloudTeacherOrderDao.getWaitActivateMap(organIdsList));
|