浏览代码

Merge branch 'feature/eta2.1.2_predit_edb' into debug

xyxie 7 月之前
父节点
当前提交
e743380ace
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      logic/predict_edb.go
  2. 1 0
      models/edb_info.go

+ 1 - 0
logic/predict_edb.go

@@ -1171,6 +1171,7 @@ func AddStaticPredictEdbInfo(sourceEdbInfoId, classifyId int, edbName, frequency
 		UnitEn:        sourceEdbInfo.UnitEn,
 		DataDateType:  sourceEdbInfo.DataDateType,
 		Sort:          models.GetAddEdbMaxSortByClassifyId(classifyId, utils.PREDICT_EDB_INFO_TYPE),
+		IsStaticData:  1,
 	}
 
 	// 关联关系表

+ 1 - 0
models/edb_info.go

@@ -64,6 +64,7 @@ type EdbInfo struct {
 	IndicatorCode    string  `description:"指标代码"`
 	StockCode        string  `description:"证券代码"`
 	Extra            string  `description:"指标的额外配置"`
+	IsStaticData     int     `description:"指标额外配置"`
 }
 
 func (e *EdbInfo) Add() (err error) {