mode 3(持仓名义本金)/4(持仓市值): 零引用死代码 mode 7/8(多空存续名义本金): 界面已禁用, 无历史数据(用户确认) 删除: - InterestModeEnum: 移除 持仓名义本金/持仓市值/多头存续名义本金/空头存续名义本金 枚举值保持显式(1/2/5/6/9), DB契约不变 - CalcNotionalByMode: 移除 mode 7/8 的 case - ConsTrade.InterestModels/InterestNotionalModels: 移除 mode 7/8 - 删除3个 mode 7/8 相关测试方法(场景已不存在) CalcNotionalByMode 现在只剩 mode 5/6(保证金)的 case, 待 Margin 独立计息入口建成后整体删除。 验证: 编译0错误, 全量508测试7失败(基线一致)。
30 lines
565 B
C#
30 lines
565 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace YLErp.DBModels
|
|
{
|
|
/// <summary>
|
|
/// 计息类型
|
|
/// </summary>
|
|
public enum InterestModeEnum
|
|
{
|
|
Unknown = 0,
|
|
固定值 = 1,
|
|
合约名义本金规模 = 2,
|
|
初始预付金 = 5,
|
|
追加预付金 = 6,
|
|
标的期初全价 = 9
|
|
}
|
|
/// <summary>
|
|
/// 计息方式
|
|
/// </summary>
|
|
public enum InterestTypeEnum
|
|
{
|
|
单利 = 0,
|
|
复利 = 1
|
|
}
|
|
}
|