Browse Source

********************WX******************
调整空间关系

zhangweixin 4 years ago
parent
commit
07a5a56887

+ 1 - 1
equip-component/src/main/kotlin/com/persagy/server/models/EquipmentDel.kt

@@ -168,7 +168,7 @@ open class EquipmentDel : BaseInfo() {
 
     /** 级联-设备分类 */
     @Schema(description = "级联-设备分类")
-    @SCascade(table="equipment", idColumn="id", childIdColumn="category")
+    @SCascade(table="equipment", idColumn="id", childIdColumn="class_code")
     var equipCategory: EquipCategory? = null
 
 

+ 2 - 2
equip-component/src/main/resources/application-test.yml

@@ -20,8 +20,8 @@ spring:
 #    username:                           postgres
 #    password:                           123qwe!@#
 #    url:                                jdbc:postgresql://datacenter:5432/datacenter
-#    url:                                jdbc:postgresql://192.168.64.15:5432/datacenter
-    url:                                jdbc:postgresql://192.168.64.14:5432/datacenterlabsl
+    url:                                jdbc:postgresql://192.168.64.15:5432/datacenter
+#    url:                                jdbc:postgresql://192.168.64.14:5432/datacenterlabsl
 #    url:                                jdbc:postgresql://datacenter:5432/datacenterlabsl
     username:                           postgres
 #    password:                           persagy_2020qwe!@#