mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 04:28:51 +08:00
fix: 修复查询工作空间-项目列表时没有检查工作空间的问题
This commit is contained in:
parent
5d850e7d70
commit
acc0aa2a1e
@ -20,6 +20,7 @@ import io.metersphere.service.BaseCheckPermissionService;
|
||||
import io.metersphere.service.BaseProjectService;
|
||||
import io.metersphere.service.MicroService;
|
||||
import io.metersphere.service.SystemProjectService;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.Logical;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@ -86,6 +87,9 @@ public class SystemProjectController {
|
||||
@PostMapping("/list/{goPage}/{pageSize}")
|
||||
@RequiresPermissions(PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ)
|
||||
public Pager<List<ProjectDTO>> getProjectList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody ProjectRequest request) {
|
||||
if (StringUtils.isBlank(request.getWorkspaceId())) {
|
||||
return new Pager<>();
|
||||
}
|
||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
return PageUtils.setPageInfo(page, systemProjectService.getProjectList(request));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user