Commit d3368cf2 by 人人开源ww Committed by Gitee

!12 update src/main/java/io/renren/utils/GenUtils.java.

Merge pull request !12 from Admin/N/A
parents b07152fb bc41a25c
...@@ -275,7 +275,9 @@ public class GenUtils { ...@@ -275,7 +275,9 @@ public class GenUtils {
public static String tableToJava(String tableName, String[] tablePrefixArray) { public static String tableToJava(String tableName, String[] tablePrefixArray) {
if (null != tablePrefixArray && tablePrefixArray.length > 0) { if (null != tablePrefixArray && tablePrefixArray.length > 0) {
for (String tablePrefix : tablePrefixArray) { for (String tablePrefix : tablePrefixArray) {
tableName = tableName.replace(tablePrefix, ""); if (tableName.startsWith(tablePrefix)){
tableName = tableName.replaceFirst(tablePrefix, "");
}
} }
} }
return columnToJava(tableName); return columnToJava(tableName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment