Ver código fonte

支持年度指标

Roc 2 anos atrás
pai
commit
2834922637
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      logic/predict_edb.go

+ 2 - 2
logic/predict_edb.go

@@ -396,8 +396,8 @@ func EditPredictEdbInfo(edbInfoId, classifyId int, edbName string, ruleList []mo
 			err = errors.New(errMsg)
 			return
 		}
-		if !utils.InArrayByStr([]string{"日度", "周度", "月度"}, sourceEdbInfo.Frequency) {
-			errMsg = "预测指标只支持选择日度、周度、月度的指标"
+		if !utils.InArrayByStr([]string{"日度", "周度", "月度", "年度"}, sourceEdbInfo.Frequency) {
+			errMsg = "预测指标只支持选择日度、周度、月度、年度的指标"
 			err = errors.New(errMsg)
 			return
 		}