Merge branch 'master' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into feature/user-register

 Conflicts:
	更新日志.md
This commit is contained in:
YunaiV 2021-12-14 09:58:41 +08:00
commit a582a6e726
4 changed files with 11 additions and 3 deletions

BIN
img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

View File

@ -191,7 +191,7 @@ public class ToolCodegenEngine {
} }
private static String javaFilePath(String path) { private static String javaFilePath(String path) {
return "java/${basePackage}/${table.moduleName}/" + path + ".java"; return "java/${basePackage}/modules/${table.moduleName}/" + path + ".java";
} }
private static String vueTemplatePath(String path) { private static String vueTemplatePath(String path) {

View File

@ -64,10 +64,17 @@ public class ToolCodegenSQLParser {
private static ToolSchemaTableDO parseTable(SQLCreateTableStatement statement) { private static ToolSchemaTableDO parseTable(SQLCreateTableStatement statement) {
return ToolSchemaTableDO.builder() return ToolSchemaTableDO.builder()
.tableName(statement.getTableSource().getTableName(true)) .tableName(statement.getTableSource().getTableName(true))
.tableComment(((SQLCharExpr) statement.getComment()).getText()) .tableComment(getCommentText(statement))
.build(); .build();
} }
private static String getCommentText(SQLCreateTableStatement statement) {
if (statement == null || statement.getComment() == null) {
return "";
}
return ((SQLCharExpr) statement.getComment()).getText();
}
private static List<ToolSchemaColumnDO> parseColumns(SQLCreateTableStatement statement) { private static List<ToolSchemaColumnDO> parseColumns(SQLCreateTableStatement statement) {
List<ToolSchemaColumnDO> columns = new ArrayList<>(); List<ToolSchemaColumnDO> columns = new ArrayList<>();
statement.getTableElementList().forEach(element -> parseColumn(columns, element)); statement.getTableElementList().forEach(element -> parseColumn(columns, element));

View File

@ -33,7 +33,8 @@
### 🐞 Bug Fixes ### 🐞 Bug Fixes
* 【修复】通知和字典查询权限 Bug * 【修复】通知和字典查询权限
* 【修复】代码生成器的 Java 类路径缺少 modules 目录的 Bug
### 🔨 Dependency Upgrades ### 🔨 Dependency Upgrades