Roc 1 year ago
parent
commit
78be8362e4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      models/predict_edb_info_rule.go

+ 3 - 0
models/predict_edb_info_rule.go

@@ -1552,6 +1552,9 @@ func GetChartPredictEdbInfoDataListByRuleAnnualValueInversion(edbInfoId int, con
 
 		}
 
+		// 保留四位小数
+		averageVal, _ = decimal.NewFromFloat(averageVal).Round(4).Float64()
+
 		for k, currentDate := range dayList {
 			currentDateStr := currentDate.Format(utils.FormatDate)
 			tmpData := &EdbInfoSearchData{