Explorar o código

支持年度指标

Roc %!s(int64=2) %!d(string=hai) anos
pai
achega
2834922637
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
 		}