diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java
index 24f3924d..4f04e8fb 100644
--- a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java
+++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java
@@ -1,6 +1,7 @@
package com.ruoyi.generator.util;
import java.util.Arrays;
+import org.apache.commons.lang3.RegExUtils;
import com.ruoyi.common.constant.GenConstants;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.generator.config.GenConfig;
@@ -179,7 +180,7 @@ public class GenUtils
*/
public static String replaceText(String text)
{
- return text.replaceAll("(?:表|若依)", "");
+ return RegExUtils.replaceAll(text, "(?:表|若依)", "");
}
/**
diff --git a/ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml b/ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml
index cac87076..1682f621 100644
--- a/ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml
+++ b/ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml
@@ -57,10 +57,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- AND table_name like concat('%', #{tableName}, '%')
+ AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
- AND table_comment like concat('%', #{tableComment}, '%')
+ AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
@@ -71,10 +71,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND table_name NOT LIKE 'qrtz_%' AND table_name NOT LIKE 'gen_%'
AND table_name NOT IN (select table_name from gen_table)
- AND table_name like concat('%', #{tableName}, '%')
+ AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
- AND table_comment like concat('%', #{tableComment}, '%')
+ AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
diff --git a/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html b/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html
index 551ddee4..b1396a93 100644
--- a/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html
+++ b/ruoyi-generator/src/main/resources/templates/tool/gen/gen.html
@@ -68,7 +68,10 @@
sortOrder: "desc",
showExport: true,
modalName: "生成配置",
+ rememberSelected: true,
+ uniqueId: "tableName",
columns: [{
+ field: 'state',
checkbox: true
},
{
diff --git a/ruoyi-generator/src/main/resources/templates/tool/gen/importTable.html b/ruoyi-generator/src/main/resources/templates/tool/gen/importTable.html
index 294ca856..0eb3509f 100644
--- a/ruoyi-generator/src/main/resources/templates/tool/gen/importTable.html
+++ b/ruoyi-generator/src/main/resources/templates/tool/gen/importTable.html
@@ -44,7 +44,10 @@
showToggle: false,
showColumns: false,
clickToSelect: true,
+ rememberSelected: true,
+ uniqueId: "tableName",
columns: [{
+ field: 'state',
checkbox: true
},
{
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index b6b14a48..d32e2f6b 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-
+