| | |
| | | @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:resignation:submit')") |
| | | public CommonResult<Boolean> submitResignationApplication(@RequestParam("id") Long id, |
| | | @RequestParam("processDefinitionKey") String processDefinitionKey) { |
| | | @RequestParam(value = "processDefinitionKey", required = false) String processDefinitionKey) { |
| | | Long userId = SecurityFrameworkUtils.getLoginUserId(); |
| | | resignationApplicationService.submitResignationApplication(id, processDefinitionKey, userId); |
| | | return success(true); |