caiaf 4 years ago
parent
commit
2a903d6cfc

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

@@ -1255,7 +1255,7 @@ open class RelationCalcService {
                                     for (connectedBlock in connectedBlocks) {
                                         val typeCode1 = connectedBlock.typeCode1
                                         val typeCode2 = connectedBlock.typeCode2
-                                        if(sourceList.contains(typeCode1) && rEq2Sp.id1 == connectedBlock.id1){
+                                        if(codeList.contains(typeCode2) && rEq2Sp.id1 == connectedBlock.id1){
                                             val fullREq2Sp = REq2Sp()
 //                                            fullREq2Sp.type = relType
 //                                            fullREq2Sp.graphCode = graphCode
@@ -1267,7 +1267,7 @@ open class RelationCalcService {
                                             fullREq2Sp.sign =2
                                             rEq2Sps.add(fullREq2Sp)
 
-                                        }else if(sourceList.contains(typeCode2) && rEq2Sp.id1 == connectedBlock.id2){
+                                        }else if(codeList.contains(typeCode1) && rEq2Sp.id1 == connectedBlock.id2){
                                             val fullREq2Sp = REq2Sp()
 //                                            fullREq2Sp.type = relType
 //                                            fullREq2Sp.graphCode = graphCode