hjhan
f8049f81f8
refactor(swap): InitInterestDate 删除死子句 td.StartDate>interestStart + 触发场景注释归因修正
分析定谳:interestStart 经三条赋值路径(=开始日/不算头+1天/preSettleDate 且仅当
≥interestStart 才覆盖)恒 ≥ td.StartDate,第二 OR 子句恒 false——死代码删除。
注释归因同时修正两侧旧错误:
- 原注释把"不算头首日"笼统挂在返回 true 上——实际由第一子句
interestStart>interestEnd 兜住(StartDate+1>StartDate);
- 候选修正案"观察日当日已结息(preSettleDate 覆盖窗口末)"亦不精确——日期相等
时函数返回 false,当日已结息的利息归零在 GetInterests closeList 净额层;
只有相等叠加到期日不算尾回拨(endDate-1)才严格大于而触发。
新增三条 InitInterestDate 直测钉边界:不算头首日空窗/同日已结息日期相等非空/
同日已结息+到期日回拨空窗。
验证:GLMS20260817Fr007UnwindMorningTest 36/36;全量 981 例 145 败与基线 diff=0
2026-08-19 11:36:53 +08:00
..
2024-05-09 14:06:26 +08:00
2026-08-11 09:57:20 +08:00
2025-09-02 18:01:22 +08:00
2026-03-11 15:04:10 +08:00
2024-05-09 14:06:26 +08:00
2026-05-22 14:02:23 +08:00
2026-08-13 17:21:04 +08:00
2026-08-07 17:44:04 +08:00
2026-08-14 15:14:09 +08:00
2025-07-25 13:40:56 +08:00
2025-04-22 09:45:21 +08:00
2026-08-19 11:36:53 +08:00
2026-08-18 08:24:21 +08:00
2026-05-08 15:09:58 +08:00
2026-03-20 14:07:43 +08:00
2026-03-13 16:06:33 +08:00
2025-09-09 13:07:21 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-07-31 11:02:49 +08:00