Browse Source

设置同步禁用刷新

xyxie 8 months ago
parent
commit
9c8df39087
1 changed files with 3 additions and 3 deletions
  1. 3 3
      controllers/data_manage/edb_info_refresh.go

+ 3 - 3
controllers/data_manage/edb_info_refresh.go

@@ -535,7 +535,7 @@ func (c *EdbInfoController) SaveEdbRefreshStatus() {
 			return
 		}
 		for _, v := range edbList {
-			if v.EdbInfoType == 0 && v.EdbType == 1 {
+			if v.EdbInfoType == 0 {
 				fromEdbIdList = append(fromEdbIdList, v.EdbInfoId)
 			}
 		}
@@ -615,7 +615,7 @@ func (c *EdbInfoController) SaveEdbRefreshStatusSingle() {
 		isStop = 1
 	}
 
-	if isStop == 1 && edbInfo.EdbInfoType == 0 && edbInfo.EdbType == 1 { //基础指标, 只有在停用的情况下才需要查询计算指标
+	if isStop == 1 && edbInfo.EdbInfoType == 0 { //基础指标, 只有在停用的情况下才需要查询计算指标
 		hasFind := make(map[int]struct{})
 		calculateEdbIdList, err = data.GetCalculateEdbByFromEdbInfo([]int{edbInfo.EdbInfoId}, calculateEdbIdList, hasFind)
 		if err != nil {
@@ -728,7 +728,7 @@ func (c *EdbInfoController) SaveRelationEdbRefreshStatus() {
 		if req.Source == utils.DATA_SOURCE_MYSTEEL_CHEMICAL {
 			edbCodeList = append(edbCodeList, v.EdbCode)
 		}
-		if v.EdbInfoType == 0 && v.EdbType == 1 {
+		if v.EdbInfoType == 0 {
 			fromEdbIdList = append(fromEdbIdList, v.EdbInfoId)
 		}
 	}