package jnpf.workflow.service;

import jnpf.base.service.SuperService;
import jnpf.entity.workflow.AttendanceGoOutApprove;
import jnpf.model.attendance.dto.GoOutApproveForOaDto;
import jnpf.model.workflow.dto.AttendanceGoOutApproveDto;
import jnpf.model.workflow.vo.AttendanceGoOutApproveVo;

import java.util.List;

/**
 * @Author huanglinpan
 * @Date 2024/5/14 18:32
 * @Version 1.0 （版本号）
 */
public interface GoOutApproveService extends SuperService<AttendanceGoOutApprove> {

    void save(String id, AttendanceGoOutApprove entity, AttendanceGoOutApproveDto dto);


    void submit(String id, AttendanceGoOutApprove entity, AttendanceGoOutApproveDto dto);


    AttendanceGoOutApproveVo getOne(String id);

    /**
     * 批量获取外出申请记录
     *
     * @param groupIds 考勤组ID
     * @param ids      申请记录ID
     * @return 外出申请记录 key=用户ID+考勤组ID
     */
    List<AttendanceGoOutApprove> getBatchByIds(List<String> groupIds, List<String> ids);

    void saveForOa(GoOutApproveForOaDto dto);
}
