refactor: eod 数据来源写库改用 EodPriceBase 常量
EodSyntheticPriceSaveService 三处 DataSource="系统"、SwapFlowService 一处 DataSource="人工",均改为引用既有 EodPriceBase.系统/人工 常量,消除 eod 数据来源列值散落字面量。仅统一“数据来源”语义,不动无关的系统操作员名(OptName/UserName 等)字面量。
This commit is contained in:
@@ -143,7 +143,7 @@ namespace YLErp.Modules.EodModule.SettlementModule
|
||||
dto.CommodityPrice.OptDate = DateTime.Now;
|
||||
dto.CommodityPrice.ClosePrice = closePrice;
|
||||
dto.CommodityPrice.SettlePrice = settlePrice;
|
||||
dto.CommodityPrice.DataSource = "系统";
|
||||
dto.CommodityPrice.DataSource = EodPriceBase.系统;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -156,7 +156,7 @@ namespace YLErp.Modules.EodModule.SettlementModule
|
||||
UnderlyingId = dto.RelUnderlyingId,
|
||||
ClosePrice = closePrice,
|
||||
SettlePrice = settlePrice,
|
||||
DataSource = "系统"
|
||||
DataSource = EodPriceBase.系统
|
||||
};
|
||||
|
||||
DbContext.eod_commodity_future_price.Add(dto.CommodityPrice);
|
||||
@@ -207,7 +207,7 @@ namespace YLErp.Modules.EodModule.SettlementModule
|
||||
OptDate = DateTime.Now,
|
||||
ClosePrice = closePrice,
|
||||
SettlePrice = closePrice,
|
||||
DataSource = "系统",
|
||||
DataSource = EodPriceBase.系统,
|
||||
};
|
||||
|
||||
DbContext.eod_stock_price.Add(dto.StockPrice);
|
||||
|
||||
Reference in New Issue
Block a user