|
@@ -412,10 +412,12 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
if(queryInfo.getPage()==1){
|
|
|
EduOrganStudentDataDto organStudentVipData = new EduOrganStudentDataDto();
|
|
|
organStudentVipData.setTotalStudentNum(studentDao.getOrganStudentNum(queryInfo.getOrganId()));
|
|
|
+ organStudentVipData.setTotalStudentNum(organStudentVipData.getTotalStudentNum()+courseScheduleStudentPaymentDao.getHasVPCourseStudentNum(queryInfo.getOrganId()));
|
|
|
organStudentVipData.setVipStudentNum(cloudTeacherDao.getOrganVipStudentNum(queryInfo.getOrganId()));
|
|
|
organStudentVipData.seteVipStudentNum(studentDao.getOrganEVipStudentNum(queryInfo.getOrganId()));
|
|
|
organStudentVipData.setCloudStudyUseStudentNum(studentDao.getCloudStudyStudentNum(queryInfo.getOrganId()));
|
|
|
organStudentVipData.setCloudStudyLivelyStudentNum(studentDao.getCloudStudyLivelyStudentNum(queryInfo.getOrganId()));
|
|
|
+ organStudentVipData.setNewCloudStudyStudentNum(sysMusicCompareRecordDao.getOrganNewCloudStudyNum(queryInfo.getOrganId()));
|
|
|
if(organStudentVipData.getVipStudentNum()>0&&organStudentVipData.getTotalStudentNum()>0){
|
|
|
organStudentVipData.setVipStudentDuty(new BigDecimal(organStudentVipData.getVipStudentNum()).divide(new BigDecimal(organStudentVipData.getTotalStudentNum()), 4, BigDecimal.ROUND_DOWN).multiply(new BigDecimal(100)).floatValue());
|
|
|
}
|
|
@@ -439,6 +441,11 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
if(!CollectionUtils.isEmpty(organsStudentNumMapList)){
|
|
|
organsStudentNumMap = MapUtil.convertIntegerMap(organsStudentNumMapList);
|
|
|
}
|
|
|
+ List<Map<Integer, Integer>> organHasVPCourseStudentNumMapList = courseScheduleStudentPaymentDao.getOrganHasVPCourseStudentNum(organIds);
|
|
|
+ Map<String, Long> organHasVPCourseStudentNumMap = new HashMap<>();
|
|
|
+ if(!CollectionUtils.isEmpty(organHasVPCourseStudentNumMapList)){
|
|
|
+ organHasVPCourseStudentNumMap = MapUtil.convertIntegerMap(organHasVPCourseStudentNumMapList);
|
|
|
+ }
|
|
|
List<Map<Integer, Integer>> organsVipStudentNumMapList = cloudTeacherDao.getOrgansVipStudentNum(organIds);
|
|
|
Map<String, Long> organsVipStudentNumMap = new HashMap<>();
|
|
|
if(!CollectionUtils.isEmpty(organsVipStudentNumMapList)){
|
|
@@ -459,6 +466,11 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
if(!CollectionUtils.isEmpty(organCloudStudyLivelyStudentNumMapList)){
|
|
|
organCloudStudyLivelyStudentNumMap = MapUtil.convertIntegerMap(organCloudStudyLivelyStudentNumMapList);
|
|
|
}
|
|
|
+ List<Map<Integer, Integer>> organsNewCloudStudyNumMapList = sysMusicCompareRecordDao.getOrgansNewCloudStudyNum(organIds);
|
|
|
+ Map<String, Long> organsNewCloudStudyNumMap = new HashMap<>();
|
|
|
+ if(!CollectionUtils.isEmpty(organsNewCloudStudyNumMapList)){
|
|
|
+ organsNewCloudStudyNumMap = MapUtil.convertIntegerMap(organsNewCloudStudyNumMapList);
|
|
|
+ }
|
|
|
|
|
|
List<EduOrganStudentDataDto> result = new ArrayList<>();
|
|
|
|
|
@@ -469,6 +481,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
if(organsStudentNumMap.containsKey(organ.getId().toString())){
|
|
|
organStudentVipData.setTotalStudentNum(organsStudentNumMap.get(organ.getId().toString()).intValue());
|
|
|
}
|
|
|
+ if(organHasVPCourseStudentNumMap.containsKey(organ.getId().toString())){
|
|
|
+ organStudentVipData.setTotalStudentNum(organStudentVipData.getTotalStudentNum() + organHasVPCourseStudentNumMap.get(organ.getId().toString()).intValue());
|
|
|
+ }
|
|
|
if(organsVipStudentNumMap.containsKey(organ.getId().toString())){
|
|
|
organStudentVipData.setVipStudentNum(organsVipStudentNumMap.get(organ.getId().toString()).intValue());
|
|
|
}
|
|
@@ -487,6 +502,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
if(organStudentVipData.getCloudStudyUseStudentNum()>0&&organStudentVipData.getTotalStudentNum()>0){
|
|
|
organStudentVipData.setCloudStudyUseStudentDuty(new BigDecimal(organStudentVipData.getCloudStudyUseStudentNum()).divide(new BigDecimal(organStudentVipData.getTotalStudentNum()), 4, BigDecimal.ROUND_DOWN).multiply(new BigDecimal(100)).floatValue());
|
|
|
}
|
|
|
+ if(organsNewCloudStudyNumMap.containsKey(organ.getId().toString())){
|
|
|
+ organStudentVipData.setNewCloudStudyStudentNum(organsNewCloudStudyNumMap.get(organ.getId().toString()).intValue());
|
|
|
+ }
|
|
|
result.add(organStudentVipData);
|
|
|
}
|
|
|
return result;
|