|
@@ -965,20 +965,6 @@ public class WebMediatorImpl implements ViewMediator {
|
|
return technicalArticlesDTO;
|
|
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) {
|
|
private ProjectOperationControl initProjectPermission(CrowdTestProject project, User user) {
|
|
ProjectOperationControl operationControl = new ProjectOperationControl();
|
|
ProjectOperationControl operationControl = new ProjectOperationControl();
|
|
if (user == null)
|
|
if (user == null)
|