update > compatible with uppercase table name

master
lihengming 7 years ago
parent b00626fc16
commit 3c530ca168
  1. 1
      src/test/java/CodeGenerator.java

@ -183,6 +183,7 @@ public class CodeGenerator {
private static String tableNameConvertLowerCamel(String tableName) {
StringBuilder result = new StringBuilder();
if (tableName != null && tableName.length() > 0) {
tableName = tableName.toLowerCase();//兼容使用大写的表名
boolean flag = false;
for (int i = 0; i < tableName.length(); i++) {
char ch = tableName.charAt(i);

Loading…
Cancel
Save