package com.qmth.themis.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qmth.themis.business.dto.response.TBTaskDto;
import com.qmth.themis.business.entity.TBTaskHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Description: 异步任务 Mapper 接口
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/7/9
 */
@Mapper
public interface TBTaskHistoryMapper extends BaseMapper<TBTaskHistory> {

	/**
	 * 查询任务
	 *
	 * @param iPage
	 * @param taskId
	 * @param entityId
	 * @param type
	 * @param status
	 * @param orgId
	 * @return
	 */
	public IPage<TBTaskDto> taskQuery(IPage<Map> iPage, @Param("taskId") Long taskId, @Param("entityId") Long entityId,
			@Param("type") String type, @Param("status") String status, @Param("orgId") Long orgId,@Param("examId") Long  examId);
}
