|
@@ -25,6 +25,7 @@ import org.codehaus.jettison.json.JSONObject;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.PageRequest;
|
|
import org.springframework.data.domain.PageRequest;
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.data.domain.Pageable;
|
|
@@ -108,7 +109,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
private String agencyId;
|
|
private String agencyId;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Page<UserVO> renderMoreUser(Pageable pageable) {
|
|
|
|
|
|
+ public List<UserVO> renderMoreUser(Pageable pageable) {
|
|
List<UserVO> userVOS=new ArrayList<>();
|
|
List<UserVO> userVOS=new ArrayList<>();
|
|
List<RankCountInfo> rankCountInfos=taskToUserDao.findTotalCountOfUser();
|
|
List<RankCountInfo> rankCountInfos=taskToUserDao.findTotalCountOfUser();
|
|
long []ids=new long[rankCountInfos.size()];
|
|
long []ids=new long[rankCountInfos.size()];
|
|
@@ -123,8 +124,7 @@ public class WebMediatorImpl implements ViewMediator {
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- Page<UserVO> Page= DataUtils.listToPage(userVOS,pageable);
|
|
|
|
- return Page;
|
|
|
|
|
|
+ return userVOS;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -994,20 +994,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)
|