From cf15877bfdbe4cb5b7d5f9bfa35659f27e3a60c1 Mon Sep 17 00:00:00 2001 From: tengyufan <1532636164@qq.com> Date: Fri, 3 Jul 2026 13:57:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E6=97=B6=E5=BC=80=E5=A7=8B=E6=97=A5=E6=9C=9F=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E5=8F=96=E7=B3=BB=E7=BB=9F=E6=97=A5=E6=9C=9F=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E6=8C=89CHN=E6=97=A5=E5=8E=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=88=B0=E4=B8=8B=E4=B8=80=E5=B7=A5=E4=BD=9C=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题:系统日期0703在CHN日历中为假日,GetNonHoliday将默认TradeDate 调整为0706,但预期行为是默认值始终取系统日期0703 修改:TradeDate默认值赋值处跳过GetNonHoliday调整,直接使用 valuedateBLL.ValueDate --- YLErpWeb/Controllers/SwapTrade2Controller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YLErpWeb/Controllers/SwapTrade2Controller.cs b/YLErpWeb/Controllers/SwapTrade2Controller.cs index d882d4ec..52d4ae46 100644 --- a/YLErpWeb/Controllers/SwapTrade2Controller.cs +++ b/YLErpWeb/Controllers/SwapTrade2Controller.cs @@ -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,