| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得请假申请详情") |
| | | @Parameter(name = "id", description = "申请ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave:query')") |
| | | public CommonResult<HrmLeaveApplicationRespVO> getLeaveApplication(@RequestParam("id") Long id) { |
| | | return success(leaveApplicationService.getLeaveApplicationDetail(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得请假申请分页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave:query')") |
| | | public CommonResult<PageResult<HrmLeaveApplicationRespVO>> getLeaveApplicationPage(@Valid HrmLeaveApplicationPageReqVO pageReqVO) { |
| | | return success(leaveApplicationService.getLeaveApplicationPage(pageReqVO)); |
| | | } |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "获得审批人编号集合,供前端判断是否展示审核按钮") |
| | | @PreAuthorize("@ss.hasPermission('hrm:leave:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(leaveApplicationService.getLeaveApplicationApproverUserIds()); |
| | | } |