refactor: 代码生成支持排除指定表

This commit is contained in:
ray
2024-07-29 23:08:37 +08:00
parent 436638827f
commit 846a547254
5 changed files with 35 additions and 3 deletions

View File

@@ -20,6 +20,13 @@
<if test="queryParams.keywords != null and queryParams.keywords.trim() neq ''">
AND TABLE_NAME LIKE CONCAT('%',#{queryParams.keywords},'%')
</if>
<!-- 排除的表 -->
<if test="queryParams.excludeTables != null and queryParams.excludeTables.size() > 0">
AND TABLE_NAME NOT IN
<foreach collection="queryParams.excludeTables" item="excludeTable" open="(" close=")" separator=",">
#{excludeTable}
</foreach>
</if>
ORDER BY
CREATE_TIME DESC
</select>