| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取员工社保公积金档案") |
| | | @Parameter(name = "id", description = "档案ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-social-security:query')") |
| | | public CommonResult<HrmEmployeeSocialSecurityRespVO> getEmployeeSocialSecurity(@RequestParam("id") Long id) { |
| | | HrmEmployeeSocialSecurityDO socialSecurity = employeeSocialSecurityService.getEmployeeSocialSecurity(id); |
| | | if (socialSecurity == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获取员工社保公积金档案分页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-social-security:query')") |
| | | public CommonResult<PageResult<HrmEmployeeSocialSecurityRespVO>> getEmployeeSocialSecurityPage( |
| | | @Valid HrmEmployeeSocialSecurityPageReqVO pageReqVO) { |
| | | PageResult<HrmEmployeeSocialSecurityDO> pageResult = employeeSocialSecurityService.getEmployeeSocialSecurityPage(pageReqVO); |
| | |
| | | @GetMapping("/list-by-user") |
| | | @Operation(summary = "获取员工社保公积金档案历史列表") |
| | | @Parameter(name = "userId", description = "系统用户ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-social-security:query')") |
| | | public CommonResult<List<HrmEmployeeSocialSecurityRespVO>> getEmployeeSocialSecurityList( |
| | | @RequestParam("userId") Long userId) { |
| | | List<HrmEmployeeSocialSecurityDO> list = employeeSocialSecurityService.getEmployeeSocialSecurityList(userId); |
| | |
| | | @GetMapping("/get-latest") |
| | | @Operation(summary = "获取员工最新生效的社保公积金档案") |
| | | @Parameter(name = "userId", description = "系统用户ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-social-security:query')") |
| | | public CommonResult<HrmEmployeeSocialSecurityRespVO> getLatestEmployeeSocialSecurity( |
| | | @RequestParam("userId") Long userId) { |
| | | HrmEmployeeSocialSecurityDO socialSecurity = employeeSocialSecurityService.getLatestEmployeeSocialSecurity(userId); |