修复代码生成器获取别名出错

This commit is contained in:
TinyAnts 2023-01-10 17:30:49 +08:00
parent 54fd266103
commit 86c8697a0f
1 changed files with 4 additions and 0 deletions

View File

@ -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));