Browse Source

增加计算指标和预测指标

xyxie 9 months ago
parent
commit
5c01ba3b9c

+ 6 - 0
controllers/data_manage/edb_info_refresh.go

@@ -655,6 +655,12 @@ func (c *EdbInfoController) SaveRelationEdbRefreshStatus() {
 	}
 	switch req.Source {
 	case utils.DATA_SOURCE_MYSTEEL_CHEMICAL, utils.DATA_SOURCE_WIND: // wind
+	case -1:
+		req.Source = 0
+		req.EdbInfoType = 1
+	case -2:
+		req.Source = 0
+		req.EdbInfoType = 2
 	default:
 		br.Msg = "暂不支持设置其他来源的指标"
 		return

+ 8 - 0
controllers/data_manage/edb_info_relation.go

@@ -73,6 +73,14 @@ func (c *EdbInfoRelationController) RelationEdbList() {
 	if currentIndex <= 0 {
 		currentIndex = 1
 	}
+	if source == -1 {
+		edbInfoType = 1
+		source = 0
+	}
+	if source == -2 {
+		edbInfoType = 2
+		source = 0
+	}
 	startSize = utils.StartIndex(currentIndex, pageSize)
 
 	total, list, err := data.GetEdbRelationList(source, edbInfoType, classifyId, sysUserId, frequency, keyword, status, startSize, pageSize, sortParam, sortType)