代码生成器增加默认作者

This commit is contained in:
TinyAnts 2023-03-17 09:52:12 +08:00
parent 2d74edc701
commit e9bacd433d
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public class GenUtil {
String tableDesc = map.getTableComment();
table.setTableName(tableName);
table.setTableComment(tableDesc);
table.setAuthorName(map.getAuthorName());
table.setAuthorName(StringUtils.isEmpty(map.getAuthorName()) ? "LikeAdmin" : map.getAuthorName());
table.setEntityName(GenUtil.toClassName(tableName));
table.setModuleName(GenUtil.toModuleName(tableName));
table.setFunctionName(GenUtil.replaceText(tableDesc));