|
@@ -631,6 +631,13 @@ func SaveExcelEdbInfoRelation(excelInfoId, source int, addChildExcel bool) (err
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// SavePredictEdbInfoRelation 添加/编辑预测指标引用关联记录
|
|
|
|
+func SavePredictEdbInfoRelation(edbInfoIds []int, edbInfoId int) (err error) {
|
|
|
|
+ //更新指标刷新状态为启用
|
|
|
|
+ err = saveEdbInfoRelation(edbInfoIds, edbInfoId, utils.EDB_RELATION_PREDIT_EDB, 0)
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+
|
|
// GetCalculateEdbByFromEdbInfo 找到依赖于该基础指标的所有计算指标
|
|
// GetCalculateEdbByFromEdbInfo 找到依赖于该基础指标的所有计算指标
|
|
func GetCalculateEdbByFromEdbInfo(edbInfoIds []int, calculateEdbIds []int, hasFind map[int]struct{}) (newCalculateEdbIds []int, err error) {
|
|
func GetCalculateEdbByFromEdbInfo(edbInfoIds []int, calculateEdbIds []int, hasFind map[int]struct{}) (newCalculateEdbIds []int, err error) {
|
|
if len(edbInfoIds) == 0 {
|
|
if len(edbInfoIds) == 0 {
|