|  | @@ -6,6 +6,7 @@ import com.ym.mec.biz.dal.entity.*;
 | 
											
												
													
														|  |  import com.ym.mec.biz.dal.enums.*;
 |  |  import com.ym.mec.biz.dal.enums.*;
 | 
											
												
													
														|  |  import com.ym.mec.biz.dal.page.StudentQueryInfo;
 |  |  import com.ym.mec.biz.dal.page.StudentQueryInfo;
 | 
											
												
													
														|  |  import com.ym.mec.biz.service.StudentService;
 |  |  import com.ym.mec.biz.service.StudentService;
 | 
											
												
													
														|  | 
 |  | +import com.ym.mec.common.constant.CommonConstants;
 | 
											
												
													
														|  |  import com.ym.mec.common.dal.BaseDAO;
 |  |  import com.ym.mec.common.dal.BaseDAO;
 | 
											
												
													
														|  |  import com.ym.mec.common.exception.BizException;
 |  |  import com.ym.mec.common.exception.BizException;
 | 
											
												
													
														|  |  import com.ym.mec.common.page.PageInfo;
 |  |  import com.ym.mec.common.page.PageInfo;
 | 
											
										
											
												
													
														|  | @@ -19,7 +20,9 @@ import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  |  import org.springframework.stereotype.Service;
 |  |  import org.springframework.stereotype.Service;
 | 
											
												
													
														|  |  import org.springframework.transaction.annotation.Transactional;
 |  |  import org.springframework.transaction.annotation.Transactional;
 | 
											
												
													
														|  |  import org.springframework.util.CollectionUtils;
 |  |  import org.springframework.util.CollectionUtils;
 | 
											
												
													
														|  | 
 |  | +import sun.nio.cs.ext.Big5;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +import java.math.BigDecimal;
 | 
											
												
													
														|  |  import java.util.*;
 |  |  import java.util.*;
 | 
											
												
													
														|  |  import java.util.stream.Collectors;
 |  |  import java.util.stream.Collectors;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -44,6 +47,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private SysMusicCompareRecordDao sysMusicCompareRecordDao;
 |  |      private SysMusicCompareRecordDao sysMusicCompareRecordDao;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private CloudTeacherDao cloudTeacherDao;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public BaseDAO<Integer, Student> getDAO() {
 |  |      public BaseDAO<Integer, Student> getDAO() {
 | 
											
												
													
														|  |          return studentDao;
 |  |          return studentDao;
 | 
											
										
											
												
													
														|  | @@ -399,11 +405,14 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          StatDto result = new StatDto();
 |  |          StatDto result = new StatDto();
 | 
											
												
													
														|  |          if(queryInfo.getPage()==1){
 |  |          if(queryInfo.getPage()==1){
 | 
											
												
													
														|  | -            EduOrganStudentDataDto organStudentVipData = studentDao.getOrganStudentVipData(queryInfo.getOrganId());
 |  | 
 | 
											
												
													
														|  | 
 |  | +            EduOrganStudentDataDto organStudentVipData = new EduOrganStudentDataDto();
 | 
											
												
													
														|  | 
 |  | +            organStudentVipData.setTotalStudentNum(studentDao.getOrganStudentNum(queryInfo.getOrganId()));
 | 
											
												
													
														|  | 
 |  | +            organStudentVipData.setVipStudentNum(cloudTeacherDao.getOrganVipStudentNum(queryInfo.getOrganId()));
 | 
											
												
													
														|  | 
 |  | +            organStudentVipData.seteVipStudentNum(studentDao.getOrganEVipStudentNum(queryInfo.getOrganId()));
 | 
											
												
													
														|  |              organStudentVipData.setCloudStudyUseStudentNum(studentDao.getCloudStudyStudentNum(queryInfo.getOrganId()));
 |  |              organStudentVipData.setCloudStudyUseStudentNum(studentDao.getCloudStudyStudentNum(queryInfo.getOrganId()));
 | 
											
												
													
														|  |              organStudentVipData.setCloudStudyLivelyStudentNum(studentDao.getCloudStudyLivelyStudentNum(queryInfo.getOrganId()));
 |  |              organStudentVipData.setCloudStudyLivelyStudentNum(studentDao.getCloudStudyLivelyStudentNum(queryInfo.getOrganId()));
 | 
											
												
													
														|  |              if(organStudentVipData.getVipStudentNum()>0&&organStudentVipData.getTotalStudentNum()>0){
 |  |              if(organStudentVipData.getVipStudentNum()>0&&organStudentVipData.getTotalStudentNum()>0){
 | 
											
												
													
														|  | -                organStudentVipData.setVipStudentDuty(organStudentVipData.getVipStudentNum()/organStudentVipData.getTotalStudentNum());
 |  | 
 | 
											
												
													
														|  | 
 |  | +                organStudentVipData.setVipStudentDuty(new BigDecimal(organStudentVipData.getVipStudentNum()).divide(new BigDecimal(organStudentVipData.getTotalStudentNum()), 4, BigDecimal.ROUND_DOWN).multiply(new BigDecimal(100)).floatValue());
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              result.setHead(organStudentVipData);
 |  |              result.setHead(organStudentVipData);
 | 
											
												
													
														|  |          }
 |  |          }
 |