refactor: AddClientCashInCashOut 加 virtual + 修正架构文档

AddClientCashInCashOut 从 public 改为 public virtual,
使测试可 override, 消除 RecordMarginCashFlow 迁出的阻塞。
AddClientCash 已是 virtual, 这是统一两者。

修正 ARCHITECTURE.md: 保证金有余额和返息(非'没有计息基数')。

验证: 编译0错误, 全量513测试7失败(基线一致)。
This commit is contained in:
hjhan
2026-08-11 17:09:13 +08:00
parent 7cea09d976
commit dafc06793e
2 changed files with 2 additions and 2 deletions
@@ -322,7 +322,7 @@ namespace YLErp.Modules.SwapModule
#endregion
public int AddClientCashInCashOut(OtcTradeBase td, double amount, string action, DateTime valueDate)
public virtual int AddClientCashInCashOut(OtcTradeBase td, double amount, string action, DateTime valueDate)
{
var cl = DataCacheProvider.GetClientDataSource().GetData(td.ClientId);