|
@@ -26,6 +26,7 @@
|
|
|
|
|
|
package com.persagy.server.syn.services.jms
|
|
|
|
|
|
+import com.persagy.base.extensions.toJson
|
|
|
import com.persagy.database.SFilter
|
|
|
import com.persagy.mybatis.SMybatisDao
|
|
|
import com.persagy.server.datacenter.models.entities.dictnew.DictProject
|
|
@@ -33,12 +34,14 @@ import com.persagy.server.datacenter.models.entities.objects.ZoneSpace
|
|
|
import com.persagy.server.datacenter.models.entities.rel.RSpinBd
|
|
|
import com.persagy.server.datacenter.models.entities.rel.RSpinFl
|
|
|
import com.persagy.server.syn.Configure
|
|
|
+import com.persagy.server.syn.controllers.obj.ObjectFromToControllers
|
|
|
import com.persagy.server.syn.jms.bean.SyncRwdDatacenterMessage
|
|
|
import com.persagy.server.syn.models.api.obj.BuildingApi
|
|
|
import com.persagy.server.syn.models.api.obj.EquipApi
|
|
|
import com.persagy.server.syn.models.tools.SpaceUtil
|
|
|
import com.persagy.service.SBaseService
|
|
|
import com.persagy.service.SObjectService
|
|
|
+import org.slf4j.LoggerFactory
|
|
|
import org.springframework.stereotype.Service
|
|
|
|
|
|
/**
|
|
@@ -49,6 +52,8 @@ import org.springframework.stereotype.Service
|
|
|
*/
|
|
|
@Service
|
|
|
class RwdSpace {
|
|
|
+ /** 日志 */
|
|
|
+ private val logger = LoggerFactory.getLogger(ObjectFromToControllers::class.java)
|
|
|
/** 建筑服务 */
|
|
|
private val spaceService = SBaseService(SMybatisDao(ZoneSpace::class.java))
|
|
|
/** 缓存对象数据 - 数据中台到数据中心 */
|
|
@@ -65,7 +70,7 @@ class RwdSpace {
|
|
|
* @param message 消息
|
|
|
*/
|
|
|
fun spaceType(message: SyncRwdDatacenterMessage) {
|
|
|
-
|
|
|
+ logger.debug("任务= ${message.toJson()}")
|
|
|
when(message.type){
|
|
|
Configure.RWDCREATE -> {
|
|
|
/** 创建 */
|
|
@@ -78,7 +83,6 @@ class RwdSpace {
|
|
|
dictProject!!.groupCode!!,
|
|
|
queryIdList[0]
|
|
|
)
|
|
|
-
|
|
|
val toJsonObj = Configure.toJsonObj("ArchSubset", "Bd2Sp", null, message.targetId)
|
|
|
/** 空间的建筑 */
|
|
|
val equipInBuildingList =
|
|
@@ -89,6 +93,7 @@ class RwdSpace {
|
|
|
space.buildingId = hashMap["objFrom"].toString()
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
val toJsonObj02 = Configure.toJsonObj("ArchSubset", "Fl2Sp", null, message.targetId)
|
|
|
/** 查询空间和楼层关系 */
|
|
|
val equipInFloorList = EquipApi.queryRelation(dictProject.groupCode!!, message.projectId!!, toJsonObj02)
|