| | |
| | | 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) { |
| | |
| | | } |
| | | |
| | | @PostMapping("/transition") |
| | | @PreAuthorize("@ss.hasPermi('project:phase:edit')") |
| | | @Log(title = "项目管理-阶段推进", businessType = BusinessType.UPDATE) |
| | | public AjaxResult transition(@RequestBody ProjectWorkflowDtos.StageTransitionRequest request) { |
| | | service.transitionStage(request); |
| | |
| | | @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(); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("/category/list") |
| | | @PreAuthorize("@ss.hasAnyPermi('project:category:list,project:info:add,project:info:edit')") |
| | | public AjaxResult categoryList() { |
| | | return AjaxResult.success(service.listCategories()); |
| | | } |
| | |
| | | } |
| | | |
| | | @GetMapping("/policy/list") |
| | | @PreAuthorize("@ss.hasPermi('policy:file:list')") |
| | | public AjaxResult policyList(@RequestParam(required = false) String keyword) { |
| | | return AjaxResult.success(service.listPolicies(keyword)); |
| | | } |