|
@@ -138,7 +138,7 @@ func AddPredictEdbInfo(sourceEdbInfoId, classifyId int, edbName string, ruleList
|
|
|
calculateMappingList = append(calculateMappingList, calculateMappingItem)
|
|
|
|
|
|
// 动态环差 计算列表
|
|
|
- calculateRule9List := make([]models.CalculateRule, 0)
|
|
|
+ calculateRuleList := make([]models.CalculateRule, 0)
|
|
|
|
|
|
// 预测指标配置
|
|
|
predictEdbConfList := make([]*models.PredictEdbConf, 0)
|
|
@@ -253,7 +253,7 @@ func AddPredictEdbInfo(sourceEdbInfoId, classifyId int, edbName string, ruleList
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- calculateRule9List = append(calculateRule9List, models.CalculateRule{
|
|
|
+ calculateRuleList = append(calculateRuleList, models.CalculateRule{
|
|
|
TrendsCalculateMappingList: trendsMappingList,
|
|
|
EdbInfoList: edbInfoList,
|
|
|
EdbInfoIdBytes: edbInfoIdBytes,
|
|
@@ -279,7 +279,7 @@ func AddPredictEdbInfo(sourceEdbInfoId, classifyId int, edbName string, ruleList
|
|
|
|
|
|
predictEdbConfList = append(predictEdbConfList, tmpPredictEdbConf)
|
|
|
}
|
|
|
- err = models.AddPredictEdb(edbInfo, calculateMappingList, predictEdbConfList, calculateRule9List)
|
|
|
+ err = models.AddPredictEdb(edbInfo, calculateMappingList, predictEdbConfList, calculateRuleList)
|
|
|
if err != nil {
|
|
|
errMsg = "保存失败"
|
|
|
err = errors.New("保存失败,Err:" + err.Error())
|
|
@@ -411,7 +411,7 @@ func EditPredictEdbInfo(edbInfoId, classifyId int, edbName string, ruleList []mo
|
|
|
calculateMappingList = append(calculateMappingList, calculateMappingItem)
|
|
|
|
|
|
// 动态环差 计算列表
|
|
|
- calculateRule9List := make([]models.CalculateRule, 0)
|
|
|
+ calculateRuleList := make([]models.CalculateRule, 0)
|
|
|
|
|
|
// 预测指标配置
|
|
|
predictEdbConfList := make([]*models.PredictEdbConf, 0)
|
|
@@ -526,7 +526,7 @@ func EditPredictEdbInfo(edbInfoId, classifyId int, edbName string, ruleList []mo
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- calculateRule9List = append(calculateRule9List, models.CalculateRule{
|
|
|
+ calculateRuleList = append(calculateRuleList, models.CalculateRule{
|
|
|
TrendsCalculateMappingList: trendsMappingList,
|
|
|
EdbInfoList: edbInfoList,
|
|
|
EdbInfoIdBytes: edbInfoIdBytes,
|
|
@@ -553,7 +553,7 @@ func EditPredictEdbInfo(edbInfoId, classifyId int, edbName string, ruleList []mo
|
|
|
predictEdbConfList = append(predictEdbConfList, tmpPredictEdbConf)
|
|
|
}
|
|
|
|
|
|
- err = models.EditPredictEdb(edbInfo, updateEdbInfoCol, calculateMappingList, predictEdbConfList, calculateRule9List)
|
|
|
+ err = models.EditPredictEdb(edbInfo, updateEdbInfoCol, calculateMappingList, predictEdbConfList, calculateRuleList)
|
|
|
if err != nil {
|
|
|
errMsg = "保存失败"
|
|
|
err = errors.New("保存失败,Err:" + err.Error())
|