mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-07 23:57:20 +08:00
Merge branch 'develop' of https://gitee.com/likeadmin/likeadmin_java into develop
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