whyclxw
2024-12-12 53a01d18096982d75248d1d368021577b9638287
src/main/resources/mapper/CommonMapper.xml
@@ -165,16 +165,14 @@
        select max(${field}) from ${schema}.${table}
    </select>
    <select id="existTable" resultType="java.lang.String">
        select
            table_name
        from `INFORMATION_SCHEMA`.`TABLES`
        select distinct table_name
        from INFORMATION_SCHEMA.TABLES
        where table_name = #{tableName}
        and TABLE_SCHEMA = #{dbName}
    </select>
    <select id="getTableListLike" resultType="java.lang.String">
            select
            table_name
            from `INFORMATION_SCHEMA`.`TABLES`
            select distinct table_name
            from INFORMATION_SCHEMA.TABLES
            where TABLE_SCHEMA = #{dbName}
            and table_name like concat(#{tableLike},'%')
    </select>