mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-05 10:39:55 +08:00
修复代码生成器获取别名出错
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user