fix: 新增交易时开始日期默认值取系统日期,不再按CHN日历调整到下一工作日
问题:系统日期0703在CHN日历中为假日,GetNonHoliday将默认TradeDate 调整为0706,但预期行为是默认值始终取系统日期0703 修改:TradeDate默认值赋值处跳过GetNonHoliday调整,直接使用 valuedateBLL.ValueDate
This commit is contained in:
@@ -67,7 +67,7 @@ namespace YLErp.Web.Controllers
|
||||
{
|
||||
TradeType = "收益互换",
|
||||
UnderlyingInstrumentType = "Stock",
|
||||
StartDate = QdpCalendarHelper.GetNonHoliday(valuedateBLL.ValueDate),
|
||||
StartDate = valuedateBLL.ValueDate,
|
||||
TradeDate = QdpCalendarHelper.GetNonHolidayDefore(valuedateBLL.ValueDate.AddDays(-1), tradeDateCountry),
|
||||
TraderId = CurUser.UserId,
|
||||
TraderName = CurUser.UserName,
|
||||
|
||||
Reference in New Issue
Block a user