浏览代码

定时任务刷新重复刷新过滤

kobe6258 1 周之前
父节点
当前提交
64273c034f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      services/data/edb_info.go

+ 2 - 2
services/data/edb_info.go

@@ -304,8 +304,8 @@ func RefreshDataFromCalculateAll() (err error) {
 			continue
 		}
 		for _, mapping := range mappings {
-			if mapping.FromEdbInfoType == 0 && mapping.FromEdbType == 1 && mapping.FromEdbInfoId > 0 && mapping.NoUpdate == 1 {
-				utils.FileLog.Info("基础指标停用,基础指标ID:" + mapping.FromEdbCode + ",停用当前计算指标,CODE:" + v.EdbCode)
+			if mapping.FromEdbInfoId > 0 && mapping.NoUpdate == 1 {
+				utils.FileLog.Info("依赖指标停用,依赖指标ID:" + mapping.FromEdbCode + ",停用当前计算指标,CODE:" + v.EdbCode)
 				stopErr := data_manage.StopRefreshCalculateEdbIndex(v.EdbInfoId)
 				if stopErr != nil {
 					utils.FileLog.Error(fmt.Sprintf("停用计算指标失败,ID:%d;指标编码:%s;err:%s", mapping.EdbInfoId, mapping.EdbCode, stopErr.Error()))