Browse Source

fix:图表刷新时,过滤自己的指标,避免死循环

Roc 2 years ago
parent
commit
82d9f0c802
1 changed files with 3 additions and 0 deletions
  1. 3 0
      models/tables/edb_info/query.go

+ 3 - 0
models/tables/edb_info/query.go

@@ -48,6 +48,9 @@ func GetRefreshEdbInfoFromBase(edbInfoId, source int) (baseEdbInfoArr, calculate
 		return
 		return
 	}
 	}
 	for _, item := range calculateList {
 	for _, item := range calculateList {
+		if item.EdbInfoId == edbInfoId { //	如果查出来关联的指标就是自己的话,那么就过滤
+			continue
+		}
 		if item.EdbType == 1 {
 		if item.EdbType == 1 {
 			baseEdbInfoArr = append(baseEdbInfoArr, item)
 			baseEdbInfoArr = append(baseEdbInfoArr, item)
 		} else {
 		} else {