소스 검색

Merge branch 'chart/13.4' into debug

Roc 2 년 전
부모
커밋
12907fd200
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      models/predict_edb.go

+ 2 - 1
models/predict_edb.go

@@ -287,7 +287,8 @@ func CalculateByRuleByRuleLineNh(to orm.TxOrmer, predictEdbInfo EdbInfo, predict
 		// 获取需要预测的日期
 		startDateStr := secondDataList[lenSecondData-1].DataTime
 		startDate, _ := time.ParseInLocation(utils.FormatDate, startDateStr, time.Local)
-		endDate, _ := time.ParseInLocation(utils.FormatDate, ruleConf.EndDate, time.Local)
+		//endDate, _ := time.ParseInLocation(utils.FormatDate, ruleConf.EndDate, time.Local)
+		endDate := rule.EndDate
 		dayList := getPredictEdbDayList(startDate, endDate, predictEdbInfo.Frequency)
 		if len(dayList) <= 0 { // 如果未来没有日期的话,那么就退出当前循环,进入下一个循环
 			return