山证bug修复及功能 迁移
This commit is contained in:
@@ -21,7 +21,7 @@ namespace YLErp.Modules.DataCacheModule
|
||||
{
|
||||
class UnderlyingDbDataSource : IUnderlyingDataSource, IBasketPriceProvider, IDataUpdater, IDataSource, IDataSource<underlying_manager>, IDataSourceEvent, IJsonSerializable
|
||||
{
|
||||
private readonly YLContext _context=new YLContext();
|
||||
private readonly YLContext _context = new YLContext();
|
||||
/// <summary>
|
||||
/// 查询过滤条件
|
||||
/// </summary>
|
||||
@@ -151,9 +151,8 @@ namespace YLErp.Modules.DataCacheModule
|
||||
else if (un.IsBond())
|
||||
{
|
||||
var valueDate = valuedateBLL.ValueDate;
|
||||
valueDate=QdpCalendarHelper.GetNonHolidayDefore(valueDate.AddDays(-1));
|
||||
var bondPrice = EodPriceQueryService.GetBondPrice(valueDate,un.UnderlyingCode);
|
||||
price = bondPrice!=null? bondPrice.ClosePrice:un.Price??0;
|
||||
var bondPrice = EodPriceQueryService.GetBondPrice(valueDate, un.UnderlyingCode);
|
||||
price = bondPrice != null ? bondPrice.ClosePrice : un.Price ?? 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user