package cn.edu.whu.boot.collection.mapper;

import cn.edu.whu.boot.collection.domain.TaskSelectId;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TaskSelectIdMapper {

    Integer insert(TaskSelectId taskSelectId);

    Integer delete (Integer taskId);

    List<TaskSelectId> getTaskSelectIdByTaskIdAndTableName (@Param("srcTaskId") Integer srcTaskId, @Param("srcTableName")String srcTableName,
                                                            @Param("destTaskId") Integer destTaskId, @Param("destTableName")String destTableName);

    Integer getMaxSelectOrder(@Param("srcTaskId") Integer srcTaskId, @Param("srcTableName")String srcTableName,
                              @Param("destTaskId") Integer destTaskId, @Param("destTableName")String destTableName);
}
