|
@@ -72,56 +72,4 @@ public class ProjectsController {
|
|
|
return success(listProjectsByPage);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 查询项目信息列表
|
|
|
- */
|
|
|
- //@PreAuthorize("@ss.hasPermi('system:info:list')")
|
|
|
-// @GetMapping("/list")
|
|
|
-// public TableDataInfo list(Projects projects)
|
|
|
-// {
|
|
|
-// startPage();
|
|
|
-// List<Projects> list = projectsService.selectProjectsList(projects);
|
|
|
-// return getDataTable(list);
|
|
|
-// }
|
|
|
-
|
|
|
-// /**
|
|
|
-// * 分页获取项目列表(封装类)
|
|
|
-// */
|
|
|
-// public AjaxResult listProjectsVOByPage(ProjectsQueryRequest projectsQueryRequest,
|
|
|
-// HttpServletRequest request) {
|
|
|
-// long current = pictureQueryRequest.getCurrent();
|
|
|
-// long size = pictureQueryRequest.getPageSize();
|
|
|
-// // 限制爬虫
|
|
|
-// ThrowUtils.throwIf(size > 20, ErrorCode.PARAMS_ERROR);
|
|
|
-//
|
|
|
-// // 空间权限校验
|
|
|
-// Long spaceId = pictureQueryRequest.getSpaceId();
|
|
|
-// if(spaceId == null){
|
|
|
-// // 公共图库
|
|
|
-// // 普通用户默认只能看到审核通过的数据
|
|
|
-// pictureQueryRequest.setReviewStatus(PictureReviewStatusEnum.PASS.getValue());
|
|
|
-// pictureQueryRequest.setNullSpaceId(true);
|
|
|
-// }else{
|
|
|
-// boolean hasPermission = StpKit.SPACE.hasPermission(SpaceUserPermissionConstant.PICTURE_VIEW);
|
|
|
-// ThrowUtils.throwIf(!hasPermission, ErrorCode.NO_AUTH_ERROR);
|
|
|
-// // 已经改为注解鉴权
|
|
|
-// // 私有图库
|
|
|
-// // 普通用户默认只能看到审核通过的数据
|
|
|
-//// User loginUser = userClient.getLoginUser(request);
|
|
|
-//// Space space = spaceService.getById(spaceId);
|
|
|
-//// ThrowUtils.throwIf(space == null , ErrorCode.NOT_FOUND_ERROR,"空间不存在");
|
|
|
-//// if(!loginUser.getId().equals(space.getUserId())){
|
|
|
-//// throw new BusinessException(ErrorCode.NO_AUTH_ERROR,"没有空间权限");
|
|
|
-//// }
|
|
|
-// pictureQueryRequest.setReviewStatus(PictureReviewStatusEnum.PASS.getValue());
|
|
|
-// pictureQueryRequest.setNullSpaceId(false);
|
|
|
-// }
|
|
|
-// // 查询数据库
|
|
|
-// Page<Picture> picturePage = pictureService.page(new Page<>(current, size),
|
|
|
-// pictureService.getQueryWrapper(pictureQueryRequest));
|
|
|
-// // 获取封装类
|
|
|
-// return ResultUtils.success(pictureService.getPictureVOPage(picturePage, request));
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
}
|