mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
commit
e9b93ffe80
@ -191,7 +191,7 @@ public class ToolCodegenEngine {
|
||||
}
|
||||
|
||||
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) {
|
||||
|
@ -64,10 +64,17 @@ public class ToolCodegenSQLParser {
|
||||
private static ToolSchemaTableDO parseTable(SQLCreateTableStatement statement) {
|
||||
return ToolSchemaTableDO.builder()
|
||||
.tableName(statement.getTableSource().getTableName(true))
|
||||
.tableComment(((SQLCharExpr) statement.getComment()).getText())
|
||||
.tableComment(getCommentText(statement))
|
||||
.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) {
|
||||
List<ToolSchemaColumnDO> columns = new ArrayList<>();
|
||||
statement.getTableElementList().forEach(element -> parseColumn(columns, element));
|
||||
|
Loading…
Reference in New Issue
Block a user