| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得员工合同详情") |
| | | @Parameter(name = "id", description = "合同ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-contract:query')") |
| | | public CommonResult<HrmEmployeeContractRespVO> getContract(@RequestParam("id") Long id) { |
| | | return success(contractService.getContract(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得员工合同分页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-contract:query')") |
| | | public CommonResult<PageResult<HrmEmployeeContractRespVO>> getContractPage(@Valid HrmEmployeeContractPageReqVO pageReqVO) { |
| | | return success(contractService.getContractPage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/expiring-count") |
| | | @Operation(summary = "获得即将到期合同数量", description = "供 HRM 待办/首页提醒使用") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-contract:query')") |
| | | public CommonResult<Long> getExpiringCount() { |
| | | return success(contractService.getExpiringCount()); |
| | | } |