|
@@ -56,29 +56,9 @@ public class CrowTestSquareController extends BaseSearchController {
|
|
|
return new ResponseVO(ServerCode.SUCCESS, crowdTestSquareIndexDTO);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 众测项目分页查询接口
|
|
|
- */
|
|
|
- @PostMapping("/project/list")
|
|
|
- public ResponseVO findAllprojectByPage(@RequestBody SearchConditionVO searchConditionVO) {
|
|
|
- Pageable pageable = this.getPageable(searchConditionVO);
|
|
|
- List<CrowdTestProjectVO> list = crowdProjectService.findAll(pageable);
|
|
|
- Page<CrowdTestProjectVO> page = DataUtils.listToPage(list, pageable);
|
|
|
- return new ResponseVO<>(ServerCode.SUCCESS, page);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 众测任务分页查询接口
|
|
|
- */
|
|
|
- @PostMapping("/task/list")
|
|
|
- public ResponseVO<Page<CrowdTaskVO>> getAllTaskByPage(@RequestBody SearchConditionVO searchConditionVO) {
|
|
|
- Pageable pageable = this.getPageable(searchConditionVO);
|
|
|
- Page<CrowdTaskVO> page = commonService.getTaskinfo(pageable, null, 0);
|
|
|
- return new ResponseVO<>(ServerCode.SUCCESS, page);
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
- * 搜索框模糊查询接口
|
|
|
+ * 搜索框模糊分页查询接口
|
|
|
*/
|
|
|
@PostMapping("search/list")
|
|
|
public ResponseVO findByNameLike(@RequestBody SearchConditionVO searchConditionVO) {
|
|
@@ -89,7 +69,6 @@ public class CrowTestSquareController extends BaseSearchController {
|
|
|
ProjectAndTaskDTO projectAndTaskDTO = new ProjectAndTaskDTO();
|
|
|
List<CrowdTestProjectVO> list = crowdProjectService.findByNameLike(keyword);
|
|
|
List<CrowdTaskVO> taskVOList = crowdTaskService.findByNameLike(keyword);
|
|
|
-
|
|
|
projectAndTaskDTO.setCrowdTaskVOList(taskVOList);
|
|
|
projectAndTaskDTO.setProjectVOList(list);
|
|
|
List projectAndTaskDTOList = new ArrayList<>();
|