山证bug修复及功能 迁移

This commit is contained in:
吴方海
2024-06-04 18:19:49 +08:00
parent df65cd0add
commit acbd2e7678
39 changed files with 709 additions and 406 deletions
@@ -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
{