Browse Source

Merge branch 'eta_bug_7028_residual_1225@guomengyuan' into debug

gmy 3 months ago
parent
commit
c3cf8bc373
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/residual_analysis_service/residual_analysis_service.go

+ 2 - 2
services/residual_analysis_service/residual_analysis_service.go

@@ -660,14 +660,14 @@ func SaveResidualAnalysis(req residual_analysis_model.ResidualAnalysisIndexSaveR
 			}
 
 			// 如果当前时间更晚
-			if currentTime.After(latestTime) {
+			if !currentTime.Before(latestTime) {
 				latestTime = currentTime
 				indexLatestDate = data.DataTime
 				indexLatestValue = data.Value
 			}
 
 			// 取最小时间
-			if currentTime.Before(firstTime) {
+			if !currentTime.After(firstTime) {
 				firstTime = currentTime
 				startDate = data.DataTime
 			}