update ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java.
Signed-off-by: yi-l-i-yi-li <8995991+yi-l-i-yi-li@user.noreply.gitee.com>
This commit is contained in:
parent
bc80c8d9aa
commit
b61663f25f
|
|
@ -199,7 +199,7 @@ public class GenController extends BaseController
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
SqlUtil.filterKeyword(sql);
|
//SqlUtil.filterKeyword(sql);
|
||||||
List<SQLStatement> sqlStatements = SQLUtils.parseStatements(sql, DbType.mysql);
|
List<SQLStatement> sqlStatements = SQLUtils.parseStatements(sql, DbType.mysql);
|
||||||
List<String> tableNames = new ArrayList<>();
|
List<String> tableNames = new ArrayList<>();
|
||||||
for (SQLStatement sqlStatement : sqlStatements)
|
for (SQLStatement sqlStatement : sqlStatements)
|
||||||
|
|
@ -207,7 +207,7 @@ public class GenController extends BaseController
|
||||||
if (sqlStatement instanceof MySqlCreateTableStatement)
|
if (sqlStatement instanceof MySqlCreateTableStatement)
|
||||||
{
|
{
|
||||||
MySqlCreateTableStatement createTableStatement = (MySqlCreateTableStatement) sqlStatement;
|
MySqlCreateTableStatement createTableStatement = (MySqlCreateTableStatement) sqlStatement;
|
||||||
//检查sql是否存在关键字
|
//关键字过滤
|
||||||
SqlUtil.filterKeyword(createTableStatement.toString());
|
SqlUtil.filterKeyword(createTableStatement.toString());
|
||||||
if (genTableService.createTable(createTableStatement.toString()))
|
if (genTableService.createTable(createTableStatement.toString()))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue