代码生成查询时忽略大小写&翻页记住选中&表注释未填写也允许导入

master
sxile 6 years ago
parent 855ddac376
commit fd438b2353

@ -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, "(?:表|若依)", "");
}
/**

@ -57,10 +57,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectGenTableVo"/>
<where>
<if test="tableName != null and tableName != ''">
AND table_name like '%'+#{tableName}+ '%'
AND lower(table_name) like lower('%'+#{tableName}+ '%')
</if>
<if test="tableComment != null and tableComment != ''">
AND table_comment like '%'+#{tableComment}+ '%'
AND lower(table_comment) like lower('%'+#{tableComment}+ '%')
</if>
</where>
</select>
@ -72,10 +72,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND F.MINOR_ID=0 AND D.XTYPE='U' AND D.NAME!='DTPROPERTIES'
AND D.NAME NOT IN (select table_name from gen_table)
<if test="tableName != null and tableName != ''">
AND D.NAME like '%'+#{tableName}+ '%'
AND lower(D.NAME) like lower('%'+#{tableName}+ '%')
</if>
<if test="tableComment != null and tableComment != ''">
AND cast(F.VALUE as nvarchar) like '%'+#{tableComment}+ '%'
AND lower(cast(F.VALUE as nvarchar)) like lower('%'+#{tableComment}+ '%')
</if>
</select>

@ -68,8 +68,11 @@
sortOrder: "desc",
showExport: true,
modalName: "生成配置",
rememberSelected: true,
uniqueId: "tableName",
columns: [{
checkbox: true
field: 'state',
checkbox: true
},
{
field: 'tableId',

@ -44,8 +44,11 @@
showToggle: false,
showColumns: false,
clickToSelect: true,
rememberSelected: true,
uniqueId: "tableName",
columns: [{
checkbox: true
field: 'state',
checkbox: true
},
{
title: "序号",

@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="roleName" column="role_name" />
<result property="roleKey" column="role_key" />
<result property="roleSort" column="role_sort" />
<result property="dataScope" column="data_scope" />
<result property="dataScope" column="data_scope" />
<result property="status" column="role_status" />
</resultMap>

Loading…
Cancel
Save