| | |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping("/audit") |
| | | @Operation(summary = "审核设计项目(待审核→待归档)") |
| | | @PutMapping("/submit-approval") |
| | | @Operation(summary = "提交设计项目审批(待审核→审批中)") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @Parameter(name = "processDefinitionKey", description = "流程定义 Key", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-project:update')") |
| | | public CommonResult<Boolean> auditProject(@RequestParam("id") Long id) { |
| | | projectService.auditProject(id); |
| | | public CommonResult<Boolean> submitProjectApproval(@RequestParam("id") Long id, |
| | | @RequestParam("processDefinitionKey") String processDefinitionKey) { |
| | | projectService.submitProjectApproval(id, processDefinitionKey); |
| | | return success(true); |
| | | } |
| | | |
| | | @GetMapping("/approve-process-list") |
| | | @Operation(summary = "获得设计项目审批流程列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-project:update')") |
| | | public CommonResult<List<Map<String, Object>>> getProjectApproveProcessDefinitionList() { |
| | | return success(projectService.getProjectApproveProcessDefinitionList()); |
| | | } |
| | | |
| | | @PutMapping("/archive") |
| | | @Operation(summary = "归档设计项目(待归档→已归档),同时自动创建归档台账") |
| | | @Parameter(name = "id", description = "编号", required = true) |