| | |
| | | return success(employeeService.importEmployeeList(list, importReqVO)); |
| | | } |
| | | |
| | | @PutMapping("/regular") |
| | | @Operation(summary = "员工转正", description = "仅『劳动合同』员工可转正;劳务合同不转正。转正只改状态+转正日期,不含调岗") |
| | | @Parameter(name = "id", description = "员工ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee:update')") |
| | | public CommonResult<Boolean> regularizeEmployee(@RequestParam("id") Long id) { |
| | | employeeService.regularizeEmployee(id); |
| | | return success(true); |
| | | } |
| | | |
| | | @GetMapping("/regularize-reminders") |
| | | @Operation(summary = "获得待转正提醒列表", description = "试用中、且当前为劳动合同、试用期在 days 天内到期的员工") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee:query')") |
| | | public CommonResult<List<HrmEmployeeRespVO>> getRegularizeReminders( |
| | | @RequestParam(value = "days", required = false, defaultValue = "7") Integer days) { |
| | | List<HrmEmployeeDO> list = employeeService.getRegularizeReminderList(days); |
| | | return success(BeanUtils.toBean(list, HrmEmployeeRespVO.class)); |
| | | } |
| | | |
| | | } |