Forráskód Böngészése

修改为 database 命名为 db_name

hubin 3 hónapja
szülő
commit
9e5ba8435c

+ 2 - 2
src/main/java/com/aizuda/boot/modules/gen/entity/GenDatabase.java

@@ -57,7 +57,7 @@ public class GenDatabase extends BaseEntity {
 	@Schema(description = "数据库名")
 	@NotBlank(groups = Create.class)
 	@Size(max = 50)
-	private String database;
+	private String dbName;
 
 	@Schema(description = "备注")
 	@Size(max = 255)
@@ -78,7 +78,7 @@ public class GenDatabase extends BaseEntity {
 			url.append("jdbc:postgresql://");
 		}
 		url.append(this.host).append(":").append(this.port);
-		url.append("/").append(this.database);
+		url.append("/").append(this.dbName);
 		if (dbType == DbType.MYSQL) {
 			url.append("?useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai");
 		}