|
@@ -171,19 +171,19 @@ class ObjectToFromController {
|
|
|
if (!updateObj) {
|
|
|
logger.debug("设备更新失败:${equip.toJson()}")
|
|
|
}
|
|
|
- if (!equip.buildingId.isNullOrEmpty()) {
|
|
|
- val toJsonObjArray =
|
|
|
- Configure.toJsonObjArray("MechInArch", "Eq2Bd", equip.id!!, equip.buildingId!!)
|
|
|
- if (!equip.floorId.isNullOrEmpty()){
|
|
|
- val toJsonObjArray2 =
|
|
|
- Configure.toJsonObjArray("MechInArch", "Eq2Fl", equip.id!!, equip.floorId!!)
|
|
|
- toJsonObjArray.add(toJsonObjArray2[0])
|
|
|
- }
|
|
|
- val createRel = EquipApi.createRel(dictProject.groupCode!!, projectId, toJsonObjArray)
|
|
|
- if (!createRel){
|
|
|
- logger.debug("设备和楼层的关系失败:${equip.toJson()}")
|
|
|
- }
|
|
|
- }
|
|
|
+// if (!equip.buildingId.isNullOrEmpty()) {
|
|
|
+// val toJsonObjArray =
|
|
|
+// Configure.toJsonObjArray("MechInArch", "Eq2Bd", equip.id!!, equip.buildingId!!)
|
|
|
+// if (!equip.floorId.isNullOrEmpty()){
|
|
|
+// val toJsonObjArray2 =
|
|
|
+// Configure.toJsonObjArray("MechInArch", "Eq2Fl", equip.id!!, equip.floorId!!)
|
|
|
+// toJsonObjArray.add(toJsonObjArray2[0])
|
|
|
+// }
|
|
|
+// val createRel = EquipApi.createRel(dictProject.groupCode!!, projectId, toJsonObjArray)
|
|
|
+// if (!createRel){
|
|
|
+// logger.debug("设备和楼层的关系失败:${equip.toJson()}")
|
|
|
+// }
|
|
|
+// }
|
|
|
}
|
|
|
return SBaseResponse(SResponseType.success)
|
|
|
} catch (e: Exception) {
|