fix: 日终价格「数据来源」改为价格行自身语义(人工/系统两档)
移除中债估值细分与操作人姓名显示,按价格行自身 DataSource 列判定:期货/股票读 DataSource(otc-marketdata 同步写系统、手工写人工);债券 update_user 非空→人工、否则→系统。筛选仅人工/系统两选项,异常来源值返回空。ResolveBondDisplaySource 精简为单参纯函数。
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user