Browse Source

fix: 建仓过程无数据

hsun 1 week ago
parent
commit
77884f479b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/data/trade_analysis/trade_analysis_data.go

+ 1 - 1
services/data/trade_analysis/trade_analysis_data.go

@@ -67,7 +67,7 @@ func FormatCompanyTradeData2EdbMappings(companyTradeData []*tradeAnalysisModel.C
 				endTime, _ = time.ParseInLocation(utils.FormatDate, ed, time.Local)
 			}
 			if endTime.IsZero() {
-				endTime = v.EndDate
+				endTime = time.Now().Local()
 			}
 		}