refactor(margin): 4处散落marginTypes收敛到MarginModes

SwapEodPositionService: 删除 marginTypes 字段(13处.Contains全改MarginModes.Contains)
SwapEventEmailService: marginTypes 字段改为 MarginModes.All.ToList()
EodClientBalanceCalc: 删除未使用的 marginTypes 局部变量(死代码)
ClientBalanceUtility: 删除未使用的 marginTypes 局部变量(死代码)

收敛后 {初始预付金,追加预付金} 集合只在 MarginModes.All 一处定义,
消除6处副本口径分裂风险。

验证: sln编译0错误, 全量485测试7失败(基线一致,零回归)。
注: 上次27失败是stash残留导致的状态不一致,本次从干净状态逐步改。
This commit is contained in:
hjhan
2026-08-11 09:40:48 +08:00
parent 553e3d4c6d
commit ef1a126b8f
4 changed files with 14 additions and 15 deletions
@@ -1402,7 +1402,6 @@ namespace YLErp.BLL.EodSettlement
public static void FillClientBalanceHisTradeFee()
{
List<int> marginTypes = new List<int>() { (int)InterestModeEnum., (int)InterestModeEnum. };
var clients = DataCacheProvider.GetClientDataSource().AsQueryable().Where(x => x.ProcessStatus == "已开户").ToList();
using var db = new YLContext();
var firstEodStatusDate = db.eodStatus.OrderBy(o => o.ValueDate).FirstOrDefault();