package jnpf.workflow.service;

import jnpf.base.service.SuperService;
import jnpf.entity.workflow.ApplyAttendanceRepair;
import jnpf.model.workflow.dto.ApplyAttendanceRepairDto;
import jnpf.model.workflow.vo.ApplyAttendanceRepairVo;

/**
 * 补卡审批服务
 *
 * @author yanwenfu
 * @create 2023-12-13
 */
public interface ApplyAttendanceRepairService extends SuperService<ApplyAttendanceRepair> {

    /**
     * 查询补卡审批记录
     * @param id 审批id
     * @return jnpf.model.workflow.vo.ApplyAttendanceRepairVo
     */
    ApplyAttendanceRepairVo getApplyAttendanceRepair(String id);

    /**
     * 保存补卡审批记录
     * @param entity 补卡实体
     * @param applyAttendanceRepairDto 补卡审批dto
     * @throws Exception 异常抛出
     */
    void save(ApplyAttendanceRepair entity, ApplyAttendanceRepairDto applyAttendanceRepairDto) throws Exception;

    /**
     * 提交补卡审批记录
     * @param id 审批id
     * @param entity 补卡实体
     * @param applyAttendanceRepairDto 补卡审批dto
     */
    void submit(String id, ApplyAttendanceRepair entity, ApplyAttendanceRepairDto applyAttendanceRepairDto);
}
