mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 10:13:28 +08:00
解决bug:数据表字段名为全大写时,代码生成器导入表之后Java字段名默认为全大写,不符合Java命名规范
This commit is contained in:
parent
c95a197028
commit
7c56dd5cb2
@ -41,7 +41,7 @@ public class GenUtils {
|
|||||||
column.setTableId(table.getTableId());
|
column.setTableId(table.getTableId());
|
||||||
column.setCreateBy(table.getCreateBy());
|
column.setCreateBy(table.getCreateBy());
|
||||||
// 设置java字段名
|
// 设置java字段名
|
||||||
column.setJavaField(StringUtils.toCamelCase(columnName));
|
column.setJavaField(StringUtils.toCamelCase(columnName.toLowerCase()));
|
||||||
// 设置默认类型
|
// 设置默认类型
|
||||||
column.setJavaType(GenConstants.TYPE_STRING);
|
column.setJavaType(GenConstants.TYPE_STRING);
|
||||||
column.setQueryType(GenConstants.QUERY_EQ);
|
column.setQueryType(GenConstants.QUERY_EQ);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user