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

This commit is contained in:
ray committed 2024-09-01 10:15:07 +08:00
1 parent 86762c959c
commit 177adad357
4 files changed
+6 -10

No files matched your search

@@ -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());
}
// 根据表的列 + 已经存在的字段生成配置 得到 组合后的字段生成配置