diff --git a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs index b1e81299..e5eb3ec2 100644 --- a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs @@ -716,7 +716,7 @@ namespace YLErp.Modules.SwapModule } var interests = new SwapDealService(this).GetInterests(td, td.trade_extend, valueDate, valueDate, preEodPositions, positions, posiNotionalValue, posiLongNotional, posiShortNational, posiNotionalValue, closePercent, (int)SwapEventTypeEnum.自动互换, false, true, grossPrice, orginPv, true); decimal InterestAmount = interests.Sum(x => x.InterestAmount); - decimal TdInterestAmount = interests.Sum(x => x.InterestClosePnL); + decimal TdInterestAmount = interests.Sum(x => x.TdInterestAmount); newEodPayPosition.ValueDate = valueDate; newEodPayPosition.PositionId = position.id; @@ -823,7 +823,7 @@ namespace YLErp.Modules.SwapModule List preEodPositions = new List(); preEodPositions.Add(eodPayPosition); var interests = new SwapDealService(this).GetInterests(td, td.trade_extend, valueDate, valueDate, preEodPositions, positions, posiNotionalValue, posiLongNotional, posiShortNational, closeNational, 1, eventType, false, true, grossPrice, orginPv, true); - decimal TdInterestAmount = interests.Sum(x => x.InterestClosePnL); + decimal TdInterestAmount = interests.Sum(x => x.TdInterestAmount); newEodPayPosition.ValueDate = valueDate; newEodPayPosition.PositionId = position.id; @@ -975,7 +975,7 @@ namespace YLErp.Modules.SwapModule newEodPayPosition.Invalid = false; newEodPayPosition.ValueDate = valueDate; decimal InterestAmount = interests.Sum(s => s.InterestAmount); - decimal TdInterestAmount = interests.Sum(x => x.InterestClosePnL); + decimal TdInterestAmount = interests.Sum(x => x.TdInterestAmount); //利息端估值用信息 newEodPayPosition.TdInterestPrincipal = interests.Count > 0 ? interests.First().InterestPrincipal : 0; newEodPayPosition.TdInterestRate = interests.Count > 0 ? interests.First().InterestRate : 0;