山证bug修复迁移

This commit is contained in:
吴方海
2024-06-21 13:45:43 +08:00
parent 7fece8679a
commit 1684bae60d
6 changed files with 55 additions and 23 deletions
@@ -5056,7 +5056,7 @@ namespace YLErp.Modules.RiskModule
lastPrice = bondPrice != null ? bondPrice.ClosePrice : (um.Price ?? 0) * Convert.ToDouble(ConsGlobal.bondPriceMultiple);
}
}
currentValue += lastPrice * Math.Abs(item.Position) - Math.Abs(item.PositionCost);
currentValue += lastPrice * item.Position - item.PositionCost;
}
return currentValue;
}