package jnpf.workflow.service;

import jnpf.base.service.SuperService;
import jnpf.entity.workflow.SelfApprove;
import jnpf.model.workflow.dto.SelfApproveDto;
import jnpf.model.workflow.vo.SelfApproveVo;

import java.util.List;

public interface SelfApproveService  extends SuperService<SelfApprove> {

    /**
     * 新增借调审批记录
     * @param id 审批id
     * @param entity 实体
     * @param selfApproveDto dto
     */
    void save(String id, SelfApprove entity, SelfApproveDto selfApproveDto);

    /**
     * 提交借调审批记录
     * @param id 借调审批id
     * @param entity 实体
     * @param selfApproveDto 借调审批dto
     */
    void submit(String id, SelfApprove entity, SelfApproveDto selfApproveDto);

    /**
     * 通过借调审批id获取借调审批详情
     * @param id 借调审批id
     * @return jnpf.model.workflow.vo.AttendanceLeaveFlowApproveVo
     * @author hlp
     */
    SelfApproveVo getAttendanceLeave(String id);

    /**
     * oa收拢保存借调
     * @param entity
     */
    void saveForOa(SelfApprove entity, List<String> userIds);
}
