refactor: 目录重构之后包名取值调整

This commit is contained in:
ray
2024-09-01 10:13:59 +08:00
parent 86762c959c
commit 177adad357
4 changed files with 6 additions and 10 deletions

View File

@@ -112,12 +112,8 @@ public class GeneratorServiceImpl implements GeneratorService {
String entityName = StrUtil.toCamelCase(StrUtil.removePrefix(tableName, tableName.split("_")[0]));
genConfig.setEntityName(entityName);
String packageName = YouLaiApplication.class.getPackageName();
genConfig.setPackageName(StrUtil.subBefore(packageName, ".", true));
genConfig.setModuleName(StrUtil.subAfter(packageName, ".", true));
genConfig.setPackageName(YouLaiApplication.class.getPackageName());
genConfig.setAuthor(generatorProperties.getDefaultConfig().getAuthor());
}
// 根据表的列 + 已经存在的字段生成配置 得到 组合后的字段生成配置