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:
@@ -22,6 +22,7 @@ using YLErp.MailKit;
|
||||
using YLErp.Model;
|
||||
using YLErp.Models;
|
||||
using YLErp.Modules.EodModule.QueryModule;
|
||||
using YLErp.Modules.SwapModule.Margin;
|
||||
using YLErp.Office.Converters;
|
||||
using YLErp.Office.Helpers;
|
||||
using static YLErp.ConsGlobal;
|
||||
@@ -31,7 +32,7 @@ namespace YLErp.Modules.SwapModule
|
||||
public class SwapEventEmailService : YLBaseService
|
||||
{
|
||||
private List<int> eventTypes = new List<int>() { (int)SwapFlowEventTypeEnum.开仓, (int)SwapFlowEventTypeEnum.平仓 };
|
||||
private List<int> marginTypes = new List<int>() { (int)InterestModeEnum.追加预付金, (int)InterestModeEnum.初始预付金 };
|
||||
private List<int> marginTypes = MarginModes.All.ToList();
|
||||
private decimal wan = 10000m;
|
||||
public SwapEventEmailService(OptUserInfo userInfo) : base(userInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user