Quellcode durchsuchen

******************WX *********************
修改关系发送消息

zhangweixin vor 4 Jahren
Ursprung
Commit
c6d0e03aaa

+ 6 - 0
data-core/src/main/kotlin/com/persagy/server/datacenter/models/entities/graphtype/rel/RelZoneSpaceConnectedSp.kt

@@ -29,6 +29,7 @@ package com.persagy.server.datacenter.models.entities.graphtype.rel
 import com.alibaba.fastjson.annotation.JSONField
 import com.persagy.service.models.annotations.SCascade
 import io.swagger.v3.oas.annotations.media.Schema
+import javax.persistence.Column
 import javax.persistence.Table
 
 /**
@@ -46,4 +47,9 @@ open class RelZoneSpaceConnectedSp: SpaceBaseZone() {
     @JSONField(name = "objectInfo")
     var objectInfo: ArrayList<RelZoneSpace>? = null
 
+    /** 对象类型 */
+    @Schema(description = "对象类型")
+    @Column(name = "object_type")
+    var classCode: String? = null
+
 }

+ 1 - 0
datacenter/src/main/kotlin/com/persagy/server/services/relation_calc/ManualRelationCalcService.kt

@@ -1268,6 +1268,7 @@ open class ManualRelationCalcService {
                     return manualRelationCalcResponse
                 }else if (manualRelationCalcRequest.relType == "sp2sp_SpaceNeighborhood_5") {
                     /** 空间连通关系 */
+                    list.add(SFilter.eq("classCode","AirConditioningZone"))
                     val pageQuery = relZoneSpaceConnectedSpService.pageQuery(sQueryRequest, list)
                     val manualRelationCalcResponse = ManualRelationCalcResponse()
                     manualRelationCalcResponse.direction = "Left"