fix: 日终价格「数据来源」改为价格行自身语义(人工/系统两档)

移除中债估值细分与操作人姓名显示,按价格行自身 DataSource 列判定:期货/股票读 DataSource(otc-marketdata 同步写系统、手工写人工);债券 update_user 非空→人工、否则→系统。筛选仅人工/系统两选项,异常来源值返回空。ResolveBondDisplaySource 精简为单参纯函数。
This commit is contained in:
hjhan
2026-07-13 15:42:28 +08:00
parent 02624abf75
commit 0fda5fd1cc
5 changed files with 32 additions and 86 deletions
@@ -90,10 +90,10 @@ namespace YLErp.Modules.EodModule
RealInstrumentType = row.RealInstrumentType, // 真实类型
IsBond = row.IsBond
};
// 债券来源固定为中债估值(等价 SearchUnderlyingList 后处理赋值)
// 债券来源:自动同步(中债)→系统(等价 SearchUnderlyingList 后处理赋值synthetic 无 UpdateUser 故为系统
if (dto.IsBond)
{
dto.DataSource = EodPriceBase.;
dto.DataSource = EodPriceBase.;
}
// 守护点1:显示按真实类型
@@ -153,7 +153,7 @@ namespace YLErp.Modules.EodModule
.Select(x => new { x.UnderlyingCode, x.UnderlyingInstrumentType })
.Take(30).ToList();
// 债券估值采样(来源恒为中债估值,无需按 JSID 判定
// 债券估值采样(来源:自动同步→系统,手工改过→人工
var bonds = db.china_bond_valuation
.Select(b => new { b.bond_id })
.Take(200).ToList();
@@ -176,7 +176,7 @@ namespace YLErp.Modules.EodModule
RealInstrumentType = un.UnderlyingInstrumentType,
IsBond = isBond,
ExpectedTypeCn = ConsGlobal.InstrumentType.GetDesc(un.UnderlyingInstrumentType),
ExpectedDataSource = isBond ? EodPriceBase. : null
ExpectedDataSource = isBond ? EodPriceBase. : null
});
}
}