fix: 日终债券来源固定中债估值、人工改动显示操作人并补上传溯源
china_bond_valuation 来源恒为中债估值(聚源仅转发,无人手工维护),不再按 JSID 推断系统/人工;eod 两表仍用自带 DataSource(人工/系统)。债券被人工改动(update_user 非空)时,日终列表来源列显示操作人姓名,否则显示中债估值;操作人经已有 create_user/update_user 列溯源(零 DDL)。手工上传 xlsx 的债券分支补戳操作人,与表单编辑口径一致。配套单测 EodPriceDtoTest / EodPriceGoldenReplayTest + golden JSON。
This commit is contained in:
@@ -154,5 +154,18 @@ namespace YLErp.DBModels
|
||||
/// 聚源id
|
||||
/// </summary>
|
||||
public long? JSID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人(登录用户ID)。聚源同步写入时为 NULL,手工编辑时由 SaveBondPrice 写入。
|
||||
/// 对应库表 china_bond_valuation.create_user(bigint)。
|
||||
/// </summary>
|
||||
public long? create_user { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新人(登录用户ID)。聚源同步写入时为 NULL,手工编辑时由 SaveBondPrice 写入。
|
||||
/// 对应库表 china_bond_valuation.update_user(bigint)。
|
||||
/// 约定:NULL = 聚源/中债自动同步(无人手工维护);有值 = 被人手工改过、可溯源。
|
||||
/// </summary>
|
||||
public long? update_user { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ namespace YLErp.DBModels
|
||||
{
|
||||
public static string 人工 = "人工";
|
||||
public static string 系统 = "系统";
|
||||
/// <summary>中债估值(china_bond_valuation 的来源恒为此值;聚源仅转发,无人手工维护)</summary>
|
||||
public static string 中债估值 = "中债估值";
|
||||
|
||||
/// <summary>
|
||||
/// 合约代码
|
||||
|
||||
Reference in New Issue
Block a user