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