|
@@ -1,9 +1,6 @@
|
|
|
package com.mooctest.crowd.site.service.impl;
|
|
|
|
|
|
-import com.mooctest.crowd.domain.repository.CommonRepo;
|
|
|
-import com.mooctest.crowd.domain.repository.CrowdTestProjectRepo;
|
|
|
-import com.mooctest.crowd.domain.repository.CrowdTestTaskRepo;
|
|
|
-import com.mooctest.crowd.domain.repository.EvaluationAgencyRepo;
|
|
|
+import com.mooctest.crowd.domain.repository.*;
|
|
|
import com.mooctest.crowd.site.data.dto.IndexDTO;
|
|
|
import com.mooctest.crowd.site.data.dto.IndexInfoDTO;
|
|
|
import com.mooctest.crowd.site.data.dto.IndexPageDTO;
|
|
@@ -38,6 +35,9 @@ public class CommonServiceImpl implements CommonService {
|
|
|
@Autowired
|
|
|
private CommonRepo commonRepo;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ApplicationTypeRepo applicationTypeRepo;
|
|
|
+
|
|
|
// @Autowired
|
|
|
// private CacheUtil cacheUtil;
|
|
|
|
|
@@ -87,9 +87,10 @@ public class CommonServiceImpl implements CommonService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public IndexInfoDTO getHotTesting() {
|
|
|
- IndexInfoDTO indexInfoDTO = viewMediator.getHotTesting();
|
|
|
- return indexInfoDTO;
|
|
|
+ public IndexPageDTO getHotTesting(Pageable pageable) {
|
|
|
+ IndexPageDTO indexPageDTO = new IndexPageDTO();
|
|
|
+ indexPageDTO.setApplicationTypePage(applicationTypeRepo.getHotTesting(pageable).map(applicationType -> new ApplicationTypeVO(applicationType)));
|
|
|
+ return indexPageDTO;
|
|
|
}
|
|
|
|
|
|
@Override
|