|
@@ -1332,7 +1332,7 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
|
|
|
Date startTime = cal.getTime();
|
|
|
|
|
|
- Map<Integer,Integer> activeMap = MapUtil.convertIntegerMap(studentDao.getOrganActiveCloudStudyStudentNum1(organIdsList, startTime, endTime));
|
|
|
+ Map<Integer,Long> activeMap = MapUtil.convertIntegerMap(studentDao.getOrganActiveCloudStudyStudentNum1(organIdsList, startTime, endTime));
|
|
|
//获取重复购买人数
|
|
|
Map<Integer,Long> againBuyMap = MapUtil.convertIntegerMap(studentDao.getAgainBuyNum(organIdsList));
|
|
|
for (IndexCloudStudySumDto dto : list) {
|
|
@@ -1341,8 +1341,8 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
dto.setWaitActivateVipStudentNum(aLong==null?0:aLong.intValue());
|
|
|
Long aLong1 = againBuyMap.get(dto.getOrganId());
|
|
|
dto.setAgainBuyNum(aLong1==null?0:aLong1.intValue());
|
|
|
- Integer integer = activeMap.get(dto.getOrganId());
|
|
|
- dto.setActiveStudentNum(integer==null?0:integer);
|
|
|
+ Long integer = activeMap.get(dto.getOrganId());
|
|
|
+ dto.setActiveStudentNum(integer==null?0:integer.intValue());
|
|
|
dto.setVipStudentNum(dto.getEffectiveVipStudentNum() + dto.getWaitActivateVipStudentNum());
|
|
|
double studentNum = (double)dto.getVipStudentNum();
|
|
|
dto.setVipStudentRate(studentNum / dto.getTotalStudentNum() * 100d);
|