xyxie 8 月之前
父節點
當前提交
3c97ae67da
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 		}