Revert "fix(swap): 互换审核通过后到期日状态流转为已到期"

This reverts commit 83f44124c6.
This commit is contained in:
hjhan
2026-07-01 17:07:55 +08:00
parent 3e5a939689
commit b548709371
2 changed files with 0 additions and 108 deletions
@@ -1575,15 +1575,6 @@ namespace YLErp.Modules.SwapModule
}
td.Notional = td.TradeAmount;
// 到期互换审核通过后应设为"已到期"(与 SwapIncome cs:1512-1517 对齐)。
// 必须放在 td.Notional = td.TradeAmount 之后,否则清零会被覆盖。
// 仅对互换(eventType=3)生效,不影响平仓(eventType=2)审核。
if (eventType == (int)SwapEventTypeEnum. && td.ExerciseDate <= swapEvent.unwindData.ValueDate)
{
td.Notional = 0;
td.StockEqvNotional = 0;
td.TradeStatus = "已到期";
}
UpdateInitalPosition(flowList, swapEvent.unwindData, eventType);
DbContext.SaveChanges();