Skip to content

Commit 3c530ca

Browse files
committed
update > compatible with uppercase table name
1 parent b00626f commit 3c530ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/CodeGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ private static freemarker.template.Configuration getConfiguration() throws IOExc
183183
private static String tableNameConvertLowerCamel(String tableName) {
184184
StringBuilder result = new StringBuilder();
185185
if (tableName != null && tableName.length() > 0) {
186+
tableName = tableName.toLowerCase();//兼容使用大写的表名
186187
boolean flag = false;
187188
for (int i = 0; i < tableName.length(); i++) {
188189
char ch = tableName.charAt(i);

0 commit comments

Comments
 (0)