package com.yssh.mapper;
|
|
import java.util.Map;
|
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
/**
|
* @ClassName: CommonMapper
|
* @Description: 通用的mapper
|
* @author zhangtengfei
|
* @date 2023年2月27日下午2:27:55
|
*/
|
@Mapper
|
public interface CommonMapper{
|
|
/**
|
* 使用information_schema检查表是否存在
|
* @param tableSchema
|
* @param tableName
|
* @return
|
*/
|
Integer checkTableExistsWithSchema(@Param("tableSchema")String tableSchema, @Param("tableName")String tableName);
|
|
/**
|
* 使用show tables检查表是否存在
|
* @param tableName
|
* @return
|
*/
|
Map<String, String> checkTableExistsWithShow(@Param("tableName")String tableName);
|
}
|