| | |
| | | import cn.iocoder.yudao.module.hrm.dal.dataobject.attendance.HrmAttendanceExceptionDO; |
| | | import jakarta.validation.Valid; |
| | | |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * 考勤异常申请 Service 接口 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | public interface HrmAttendanceExceptionService { |
| | | |
| | |
| | | HrmAttendanceExceptionDO getAttendanceException(Long id); |
| | | |
| | | /** |
| | | * 提交考勤异常申请 |
| | | * 提交考勤异常申请审批(草稿 / 审核不通过 → 审批中) |
| | | * |
| | | * 审批人由「系统管理 - 审批配置」按业务类型统一指定,提交时无需选择。 |
| | | * |
| | | * @param id 申请ID |
| | | * @param processDefinitionKey 流程定义Key |
| | | * @param userId 提交人ID |
| | | */ |
| | | void submitAttendanceException(Long id, String processDefinitionKey, Long userId); |
| | | void submitAttendanceException(Long id); |
| | | |
| | | /** |
| | | * 更新考勤异常申请审批状态 |
| | | * 获得考勤异常申请的审批人编号集合,供前端判断是否展示审核按钮 |
| | | * |
| | | * @param id 申请ID |
| | | * @param auditStatus 审批状态 |
| | | * @return 审批人用户编号集合 |
| | | */ |
| | | void updateAttendanceExceptionAuditStatus(Long id, Integer auditStatus); |
| | | Set<Long> getAttendanceExceptionApproverUserIds(); |
| | | |
| | | /** |
| | | * 审核考勤异常申请(审批中 → 审核通过 / 审核不通过) |
| | | * |
| | | * 审核通过时执行后置业务逻辑:补卡回填上下班时间 / 加班回写加班时长。 |
| | | * |
| | | * @param id 申请ID |
| | | * @param pass 是否通过 |
| | | * @param reviewRemark 审核意见(不通过时必填) |
| | | */ |
| | | void auditAttendanceException(Long id, Boolean pass, String reviewRemark); |
| | | |
| | | } |