package jnpf.workflow.service;

import jnpf.base.service.SuperService;
import jnpf.entity.workflow.ApplyAttendanceOutside;
import jnpf.model.workflow.dto.ApplyAttendanceOutsideDto;
import jnpf.model.workflow.vo.ApplyAttendanceOutsideVo;

/**
 * 外勤审批服务
 *
 * @author yanwenfu
 * @create 2023-12-13
 */
public interface ApplyAttendanceOutsideService extends SuperService<ApplyAttendanceOutside> {

    /**
     * 查询外勤审批记录
     * @param id 审批id
     * @return jnpf.model.workflow.vo.ApplyAttendanceOutsideVo
     */
    ApplyAttendanceOutsideVo getApplyAttendanceOutside(String id);

    /**
     * 新建外勤审批申请
     * @param entity 外勤实体
     * @param applyAttendanceOutsideDto 外勤dto
     */
    void save(ApplyAttendanceOutside entity, ApplyAttendanceOutsideDto applyAttendanceOutsideDto) throws Exception;

    /**
     * 修改外勤审批申请
     * @param entity 外勤实体
     * @param applyAttendanceOutsideDto 外勤dto
     */
    void submit(ApplyAttendanceOutside entity, ApplyAttendanceOutsideDto applyAttendanceOutsideDto);
}
