| | |
| | | import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractSaveReqVO; |
| | | import cn.iocoder.yudao.module.hrm.controller.admin.employee.vo.HrmEmployeeContractTerminateReqVO; |
| | | import cn.iocoder.yudao.module.hrm.service.employee.HrmEmployeeContractService; |
| | | import cn.iocoder.yudao.module.hrm.service.remind.HrmExpiryRemindService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | |
| | | |
| | | @Resource |
| | | private HrmEmployeeContractService contractService; |
| | | @Resource |
| | | private HrmExpiryRemindService expiryRemindService; |
| | | |
| | | @PostMapping("/create") |
| | | @Operation(summary = "创建员工合同") |
| | |
| | | @Operation(summary = "获得员工合同分页") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-contract:query')") |
| | | public CommonResult<PageResult<HrmEmployeeContractRespVO>> getContractPage(@Valid HrmEmployeeContractPageReqVO pageReqVO) { |
| | | // 懒触发:有人打开合同列表时顺带补扫即将到期合同并发送站内信提醒(best-effort) |
| | | try { |
| | | expiryRemindService.sendContractExpireRemind(); |
| | | } catch (Exception ignored) { |
| | | } |
| | | return success(contractService.getContractPage(pageReqVO)); |
| | | } |
| | | |