| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取员工薪酬档案") |
| | | @Parameter(name = "id", description = "档案ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<HrmEmployeeSalaryRespVO> getEmployeeSalary(@RequestParam("id") Long id) { |
| | | HrmEmployeeSalaryDO salary = employeeSalaryService.getEmployeeSalary(id); |
| | | if (salary == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获取员工薪酬档案分页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<PageResult<HrmEmployeeSalaryRespVO>> getEmployeeSalaryPage( |
| | | @Valid HrmEmployeeSalaryPageReqVO pageReqVO) { |
| | | PageResult<HrmEmployeeSalaryDO> pageResult = employeeSalaryService.getEmployeeSalaryPage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-user") |
| | | @Operation(summary = "获取员工薪酬档案历史列表") |
| | | @Parameter(name = "userId", description = "员工ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<List<HrmEmployeeSalaryRespVO>> getEmployeeSalaryList( |
| | | @RequestParam("userId") Long userId) { |
| | | List<HrmEmployeeSalaryDO> list = employeeSalaryService.getEmployeeSalaryList(userId); |
| | |
| | | @GetMapping("/get-latest") |
| | | @Operation(summary = "获取员工最新生效的薪酬档案") |
| | | @Parameter(name = "userId", description = "员工ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:salary:query')") |
| | | public CommonResult<HrmEmployeeSalaryRespVO> getLatestEmployeeSalary( |
| | | @RequestParam("userId") Long userId) { |
| | | HrmEmployeeSalaryDO salary = employeeSalaryService.getLatestEmployeeSalary(userId); |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |