git 5 лет назад
Родитель
Сommit
4f51cae6b5

+ 0 - 2
site/src/main/java/com/mooctest/crowd/site/mediator/ViewMediator.java

@@ -99,6 +99,4 @@ public interface ViewMediator {
     BankCardDTO deleteBankCard(long id,long userId);
 
     TechnicalArticlesDTO  updateRanking(long id);
-
-    IndexInfoDTO getHotTesting();
 }

+ 0 - 14
site/src/main/java/com/mooctest/crowd/site/mediator/impl/WebMediatorImpl.java

@@ -965,20 +965,6 @@ public class WebMediatorImpl implements ViewMediator {
         return technicalArticlesDTO;
     }
 
-    @Override
-    public IndexInfoDTO getHotTesting() {
-        IndexInfoDTO indexInfoDTO = new IndexInfoDTO();
-        Pageable pageable = PageRequest.of(0, 10);
-        List<ApplicationTypeVO> applicationTypeRank = projectDao.findTotalCountOfApplicationType(pageable).stream().map(rankInfos -> {
-            ApplicationType applicationType = commonRepo.getApplicationTypeByAppCode(rankInfos.getCode());
-            ApplicationTypeVO applicationTypeVO = new ApplicationTypeVO(applicationType);
-            applicationTypeVO.setCount(rankInfos.getCount());
-            return applicationTypeVO;
-        }).filter(Objects::nonNull).collect(Collectors.toList());
-        indexInfoDTO.setApplicationTypeRank(applicationTypeRank);
-        return  indexInfoDTO;
-    }
-
     private ProjectOperationControl initProjectPermission(CrowdTestProject project, User user) {
         ProjectOperationControl operationControl = new ProjectOperationControl();
         if (user == null)