1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| package com.yssh.mapper;
|
| import java.util.Map;
|
| import org.apache.ibatis.annotations.Mapper;
| import org.apache.ibatis.annotations.Param;
|
| @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);
| }
|
|