TRS-ZS-464 估值单调整& 利息计算修复&审批修复
This commit is contained in:
@@ -4,6 +4,7 @@ using CsvHelper;
|
||||
using Dapper;
|
||||
using DocumentFormat.OpenXml.Drawing;
|
||||
using MoreLinq;
|
||||
using Newtonsoft.Json;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using Qdp.ComputeServiceV2.Data.CommonModels.TradeInfos;
|
||||
using Qdp.Pricing.Base.Enums;
|
||||
@@ -213,6 +214,19 @@ namespace YLErp.Modules.SwapModule
|
||||
return resetTradeIds;
|
||||
}
|
||||
/// <summary>
|
||||
/// 检查FR007数据
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <exception cref="ServiceException"></exception>
|
||||
public void CheckFR007Data(DateTime valueDate)
|
||||
{
|
||||
var existFr007= DbContext.eod_commodity_future_price.Any(s => s.ValueDate==valueDate && s.UnderlyingCode=="FR007");
|
||||
if (!existFr007)
|
||||
{
|
||||
throw new ServiceException($"{valueDate.ToString("yyyy-MM-dd")}没有FR007数据不能进行簿记");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 校验交易是否收盘
|
||||
/// </summary>
|
||||
/// <param name="valueDate"></param>
|
||||
|
||||
Reference in New Issue
Block a user