package jnpf.workflow.service;

import jnpf.base.service.SuperService;
import jnpf.entity.workflow.ApplyAttendanceChange;
import jnpf.model.workflow.dto.ApplyAttendanceChangeDto;
import jnpf.model.workflow.vo.ApplyAttendanceChangeVo;

/**
 * 打卡申请服务
 *
 * @author yanwenfu
 * @create 2023-12-11
 */
public interface ApplyAttendanceChangeService extends SuperService<ApplyAttendanceChange> {

    /**
     * 查询审批记录
     * @param id 审批id
     * @return jnpf.model.workflow.vo.ApplyAttendanceChangeVo
     */
    ApplyAttendanceChangeVo getApplyAttendanceChange(String id);

    /**
     * 新增审批记录
     * @param entity 实体
     * @param applyAttendanceChangeDto 考勤变更dto
     */
    void save(ApplyAttendanceChange entity, ApplyAttendanceChangeDto applyAttendanceChangeDto) throws Exception;

    /**
     * 提交审批记录
     * @param id 审批id
     * @param entity 实体
     * @param applyAttendanceChangeDto 考勤变更dto
     */
    void submit(String id, ApplyAttendanceChange entity, ApplyAttendanceChangeDto applyAttendanceChangeDto);
}
