package jnpf.workflow.service;

import jnpf.base.service.SuperService;
import jnpf.entity.workflow.AttendanceWorkOvertimeApprove;
import jnpf.model.workflow.dto.AttendanceWorkOvertimeApproveDto;
import jnpf.model.workflow.vo.AttendanceWorkOvertimeApproveVo;

public interface WorkOvertimeApproveService extends SuperService<AttendanceWorkOvertimeApprove> {
    /**
     * 新增加班记录
     * @param id 审批id
     * @param entity 实体
     * @param attendanceWorkOvertimeApproveDto 请假dto
     */
    void save(String id, AttendanceWorkOvertimeApprove entity, AttendanceWorkOvertimeApproveDto attendanceWorkOvertimeApproveDto);

    /**
     * 提交加班审批记录
     * @param id 加班审批id
     * @param entity 实体
     * @param attendanceWorkOvertimeApproveDto 加班dto
     */
    void submit(String id, AttendanceWorkOvertimeApprove entity, AttendanceWorkOvertimeApproveDto attendanceWorkOvertimeApproveDto);

    /**
     * 通过加班id获取加班详情
     * @param id 加班id
     * @return jnpf.model.workflow.vo.AttendanceLeaveFlowApproveVo
     * @author hlp
     */
    AttendanceWorkOvertimeApproveVo getAttendanceLeave(String id);

    /**
     * oa收拢保存加班审批
     * @param entity
     */
    void saveForOa(AttendanceWorkOvertimeApprove entity);
}
