Explorar o código

首页云教练统计后台返回调整

zouxuan %!s(int64=3) %!d(string=hai) anos
pai
achega
70078eaab1

+ 5 - 5
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentServiceImpl.java

@@ -1026,16 +1026,16 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
     @Override
     public CloudStudyStudentDataDto getCloudStudyStudentOverView(List<Integer> organIds) {
         CloudStudyStudentDataDto result = new CloudStudyStudentDataDto();
-        result.setTotalStudentNum(studentDao.getOrgansTotalStudentNum(organIds));
+//        result.setTotalStudentNum(studentDao.getOrgansTotalStudentNum(organIds));
         result.setVipStudentNum(cloudTeacherDao.getOrgansTotalVipStudentNum(organIds));
-        result.seteVipStudentNum(studentDao.getOrgansTotalEVipStudentNum(organIds));
+//        result.seteVipStudentNum(studentDao.getOrgansTotalEVipStudentNum(organIds));
         result.setCloudStudyUseStudentNum(studentDao.getOrgansTotalCloudStudyStudentNum(organIds));
         result.setCloudStudyTodayUseStudentNum(studentDao.getOrgansTodayTotalCloudStudyStudentNum(organIds));
         result.setCloudStudyLivelyStudentNum(studentDao.getOrganTotalCloudStudyLivelyStudentNum(organIds));
         result.setNewCloudStudyStudentNum(sysMusicCompareRecordDao.getOrgansTotalNewCloudStudyNum(organIds));
-        if(result.getVipStudentNum()>0&&result.getTotalStudentNum()>0){
-            result.setVipStudentDuty(new BigDecimal(result.getVipStudentNum()).divide(new BigDecimal(result.getTotalStudentNum()), 4, BigDecimal.ROUND_DOWN).multiply(new BigDecimal(100)).floatValue());
-        }
+//        if(result.getVipStudentNum()>0&&result.getTotalStudentNum()>0){
+//            result.setVipStudentDuty(new BigDecimal(result.getVipStudentNum()).divide(new BigDecimal(result.getTotalStudentNum()), 4, BigDecimal.ROUND_DOWN).multiply(new BigDecimal(100)).floatValue());
+//        }
         return result;
     }