diff --git a/AssetManager.Services/PortfolioService.cs b/AssetManager.Services/PortfolioService.cs index ddb7dec..11e1227 100755 --- a/AssetManager.Services/PortfolioService.cs +++ b/AssetManager.Services/PortfolioService.cs @@ -128,7 +128,7 @@ public class PortfolioService : IPortfolioService Shares = (decimal)stock.Amount, AvgPrice = (decimal)stock.Price, TotalCost = (decimal)(stock.Price * stock.Amount), // 初始成本 = 价格 × 数量 - Currency = request.Currency, + Currency = stock.Currency ?? request.Currency, // 使用持仓币种,而非组合本位币 CreatedAt = buyTime, UpdatedAt = DateTime.Now };