package jnpf.personnels.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jnpf.model.personnels.po.FtbPersonnelsAuditTaskInfo;
import jnpf.model.personnels.vo.config.FtbPersonnelsAuditRunTaskInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FtbPersonnelsAuditTaskInfoMapper extends BaseMapper<FtbPersonnelsAuditTaskInfo> {
    /**
     * 获取当前审批流程信息
     *
     * @param id
     * @param masterAuditConfigId
     * @return
     */
    List<FtbPersonnelsAuditRunTaskInfo> getRunTaskInfos(@Param("id") String id,@Param("masterAuditConfigId")  String masterAuditConfigId);

    /**
     * 获取历史数据的相信
     *
     * @param id
     * @param masterAuditConfigId
     * @return
     */
    List<FtbPersonnelsAuditRunTaskInfo> getHisTaskInfos(@Param("id")String id
            ,@Param("masterAuditConfigId") String masterAuditConfigId);
}