| | |
| | | @PostMapping("/submit") |
| | | @Operation(summary = "提交调岗申请审批") |
| | | @Parameter(name = "id", description = "申请ID", required = true) |
| | | @Parameter(name = "processDefinitionKey", description = "流程定义Key", required = true) |
| | | @Parameter(name = "processDefinitionKey", description = "流程定义Key,不传则自动取该分类下最新的活跃流程") |
| | | @PreAuthorize("@ss.hasPermission('hrm:transfer:submit')") |
| | | public CommonResult<Boolean> submitTransferApplication(@RequestParam("id") Long id, |
| | | @RequestParam("processDefinitionKey") String processDefinitionKey) { |
| | | @RequestParam(value = "processDefinitionKey", required = false) |
| | | String processDefinitionKey) { |
| | | Long userId = SecurityFrameworkUtils.getLoginUserId(); |
| | | transferApplicationService.submitTransferApplication(id, processDefinitionKey, userId); |
| | | return success(true); |