package jnpf.workflow.service;

import jnpf.base.service.SuperService;
import jnpf.entity.workflow.AttendanceBusinessTripApprove;
import jnpf.model.workflow.dto.AttendanceBusinessTripApproveDto;
import jnpf.model.workflow.dto.AttendanceBusinessTripApproveOaDto;
import jnpf.model.workflow.vo.AttendanceBusinessTripApproveVo;

import java.util.List;

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

    void save(String id, AttendanceBusinessTripApprove entity, AttendanceBusinessTripApproveDto dto);


    void submit(String id, AttendanceBusinessTripApprove entity, AttendanceBusinessTripApproveDto dto);


    AttendanceBusinessTripApproveVo getOne(String id);

    /**
     * 批量获取出差申请记录
     *
     * @param groupIds 考勤组ID
     * @param ids      出差申请ID
     */
    List<AttendanceBusinessTripApprove> getBatchByIds(List<String> groupIds, List<String> ids);

    void saveForOa(AttendanceBusinessTripApproveOaDto approveOaDto);

    void submitForOa(String id, AttendanceBusinessTripApproveOaDto approveOaDto);
}
