zhangwencui
2 天以前 b30f4c40c77a940a2a749a676e901787f55040b0
src/main/java/com/ruoyi/projectManagement/controller/ProjectWorkflowController.java
@@ -26,18 +26,20 @@
    private final ProjectWorkflowService service;
    @GetMapping("/{projectId}")
    @PreAuthorize("@ss.hasPermi('project:info:query')")
    @Operation(summary = "项目模块、跟进、汇报、统计和资料")
    public AjaxResult workbench(@PathVariable Long projectId) {
        return AjaxResult.success(service.getWorkbench(projectId));
    }
    @GetMapping("/lifecycle/{projectId}")
    @PreAuthorize("@ss.hasPermi('project:info:query')")
    @Operation(summary = "项目生命周期")
    public AjaxResult lifecycle(@PathVariable Long projectId) {
        return AjaxResult.success(service.getLifecycle(projectId));
    }
    @PreAuthorize("@ss.hasPermi('project:module:edit')")
    @PreAuthorize("@ss.hasPermi('project:start')")
    @PostMapping("/start/{projectId}")
    @Log(title = "项目管理-开始项目", businessType = BusinessType.UPDATE)
    public AjaxResult startProject(@PathVariable Long projectId) {
@@ -46,6 +48,7 @@
    }
    @PostMapping("/transition")
    @PreAuthorize("@ss.hasPermi('project:phase:edit')")
    @Log(title = "项目管理-阶段推进", businessType = BusinessType.UPDATE)
    public AjaxResult transition(@RequestBody ProjectWorkflowDtos.StageTransitionRequest request) {
        service.transitionStage(request);
@@ -86,7 +89,7 @@
    @DeleteMapping("/follow-up/{id}")
    @Log(title = "项目管理-跟进删除", businessType = BusinessType.DELETE)
    public AjaxResult deleteFollowUp(@PathVariable Long id) {
        service.softDelete("project_management_follow_up", id);
        service.deleteFollowUp(id);
        return AjaxResult.success();
    }
@@ -128,6 +131,7 @@
    }
    @GetMapping("/category/list")
    @PreAuthorize("@ss.hasAnyPermi('project:category:list,project:info:add,project:info:edit')")
    public AjaxResult categoryList() {
        return AjaxResult.success(service.listCategories());
    }
@@ -148,6 +152,7 @@
    }
    @GetMapping("/policy/list")
    @PreAuthorize("@ss.hasPermi('policy:file:list')")
    public AjaxResult policyList(@RequestParam(required = false) String keyword) {
        return AjaxResult.success(service.listPolicies(keyword));
    }