Преглед на файлове

***********************WX*****************************
关系调整

张维新 преди 4 години
родител
ревизия
672fd92d9a
променени са 1 файла, в които са добавени 19 реда и са изтрити 18 реда
  1. 19 18
      datacenter/src/main/kotlin/com/persagy/server/services/relation_calc/RelationCalcService.kt

+ 19 - 18
datacenter/src/main/kotlin/com/persagy/server/services/relation_calc/RelationCalcService.kt

@@ -1175,6 +1175,7 @@ open class RelationCalcService {
                     val entity = relationTypeProjectservice.select(SFilter.eq("projectId", projectId), SFilter.eq("relationType", "eq2sp_for"), SFilter.eq("zoneType", tables!!)).entity()
                     if (entity != null) {
                         entity.computationalState = 1
+                        entity.computingTime = IdUtils.time()
                         relationTypeProjectservice.update(entity)
                     }
                 } catch (e: Exception) {
@@ -1183,24 +1184,24 @@ open class RelationCalcService {
 
 
                 /** 处理关系 */
-                val equipmentList = EquipmentService.select(SFilter.eq("projectId", projectId),
-                        SFilter.inList("classCode",
-                                arrayListOf("ATIO", "VTIO"))).exec()
-                if (equipmentList.size > 0) {
-                    var listId = ArrayList<String>()
-                    for (equipment in equipmentList) {
-                        listId.add(equipment.id!!)
-                    }
-                    val rEq2SpList = REq2SpService.select(SFilter.eq("projectId", projectId),
-                            SFilter.inList("id1", listId)
-                            , SFilter.eq("type", "eq2sp_in")).exec()
-                    if (rEq2SpList.size > 0) {
-                        for (rEq2Sp in rEq2SpList) {
-                            rEq2Sp.type = "eq2sp_for"
-                            REq2SpService.replace(rEq2Sp)
-                        }
-                    }
-                }
+//                val equipmentList = EquipmentService.select(SFilter.eq("projectId", projectId),
+//                        SFilter.inList("classCode",
+//                                arrayListOf("ATIO", "VTIO"))).exec()
+//                if (equipmentList.size > 0) {
+//                    var listId = ArrayList<String>()
+//                    for (equipment in equipmentList) {
+//                        listId.add(equipment.id!!)
+//                    }
+//                    val rEq2SpList = REq2SpService.select(SFilter.eq("projectId", projectId),
+//                            SFilter.inList("id1", listId)
+//                            , SFilter.eq("type", "eq2sp_in")).exec()
+//                    if (rEq2SpList.size > 0) {
+//                        for (rEq2Sp in rEq2SpList) {
+//                            rEq2Sp.type = "eq2sp_for"
+//                            REq2SpService.replace(rEq2Sp)
+//                        }
+//                    }
+//                }
                 /** 发送消息 */
                 rabbitMqService.sendRel(Opt.projectId!!, "fengkou_for", "20", "123", "456")
                 return SBaseResponse(SResponseType.success)