caiaf 3 years ago
parent
commit
cdbd08af29

+ 2 - 2
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/backstage/model/datacenter/DCEquipment.kt

@@ -62,8 +62,8 @@ open class DCEquipment : DCDataBase() {
 
     /** 别编码 */
     @ApiModelProperty(value = "别编码")
-    @JSONField(name = "aliasCode")
-    var aliasCode: String? = null
+    @JSONField(name = "wdCode")
+    var wdCode: String? = null
 
     /** 别名称 */
     @ApiModelProperty(value = "别名称")

+ 2 - 2
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/backstage/sync/SyncEquipment.kt

@@ -163,7 +163,7 @@ class SyncEquipment : SyncObject{
             dcEquip.bimTypeID = it.value.bimTypeID
             dcEquip.bimTypeName = it.value.bimTypeName
             dcEquip.infos = it.value.infos
-            dcEquip.aliasCode = it.value.aliasCode
+            dcEquip.wdCode = it.value.wdCode
             dcEquip.aliasName = it.value.aliasName
             generateCADID(dcEquip)
             val point = it.value.location?.points?.get(0)
@@ -212,7 +212,7 @@ class SyncEquipment : SyncObject{
         dcEquip.modelId = equip.modelId
         dcEquip.bimTypeID = equip.bimTypeID
         dcEquip.bimTypeName =  equip.bimTypeName
-        dcEquip.aliasCode = equip.aliasCode
+        dcEquip.wdCode = equip.wdCode
         dcEquip.aliasName = equip.aliasName
         updateList.add(dcEquip)
         if(equip.propertyId != null && dcEquip.id != null)

+ 2 - 2
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/models/entities/Equipment.kt

@@ -164,8 +164,8 @@ class Equipment : BaseComponent(){
 
     /** 别编码 */
     @ApiModelProperty(value = "别编码")
-    @Column(name = "alias_code")
-    var aliasCode: String? = null
+    @Column(name = "wd_code")
+    var wdCode: String? = null
 
     /** 别名称 */
     @ApiModelProperty(value = "别名称")