xyxie 8 months ago
parent
commit
3c97ae67da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/edb_info_relation.go

+ 1 - 1
services/edb_info_relation.go

@@ -236,8 +236,8 @@ func FindBaseEdbInfo(edbInfoId int, baseEdbInfoList []int, hasFind map[int]struc
 	}
 	hasFind[edbInfoId] = struct{}{}
 	for _, mapping := range newMappingList {
+		newBaseEdbInfoList = append(newBaseEdbInfoList, mapping.FromEdbInfoId)
 		if mapping.EdbType == 1 { // 如果是基础指标,则加入,否则继续找
-			newBaseEdbInfoList = append(newBaseEdbInfoList, mapping.FromEdbInfoId)
 		} else {
 			newBaseEdbInfoList, err = FindBaseEdbInfo(mapping.FromEdbInfoId, newBaseEdbInfoList, hasFind)
 		}