修复代码生成器获取别名出错
This commit is contained in:
parent
54fd266103
commit
86c8697a0f
|
|
@ -255,6 +255,10 @@ public class GenUtil {
|
|||
* @return String
|
||||
*/
|
||||
public static String getTableAlias(String tableName) {
|
||||
if (StringUtils.isNull(tableName) || StringUtils.isEmpty(tableName)) {
|
||||
return "";
|
||||
}
|
||||
|
||||
StringBuilder val = new StringBuilder();
|
||||
for (String name : tableName.split("_")) {
|
||||
val.append(name.charAt(0));
|
||||
|
|
|
|||
Loading…
Reference in New Issue