From f4a61ff17ec8c8f82235dc07cb62289c712b097d Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Tue, 31 Mar 2026 09:40:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Norm/N_SportsTestResultService.cs | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/VOL.Business/Services/Norm/N_SportsTestResultService.cs b/VOL.Business/Services/Norm/N_SportsTestResultService.cs index aa5e6f1..2591db4 100644 --- a/VOL.Business/Services/Norm/N_SportsTestResultService.cs +++ b/VOL.Business/Services/Norm/N_SportsTestResultService.cs @@ -531,19 +531,22 @@ namespace VOL.Business.Services var today = DateTime.Today; // 先确定当前学期的时间范围 - DateTime startDate, endDate; + //DateTime startDate, endDate; - // 规则:上学期 9月1日 – 次年2月1日;下学期 2月1日 – 9月1日 - if (today.Month >= 9 || today.Month < 2) // 上学期 - { - startDate = new DateTime(today.Month >= 9 ? today.Year : today.Year - 1, 1, 1); - endDate = new DateTime(today.Month >= 9 ? today.Year + 1 : today.Year, 2, 1); - } - else // 下学期 - { - startDate = new DateTime(today.Year, 2, 1); - endDate = new DateTime(today.Year, 10, 1); - } + //// 规则:上学期 9月1日 – 次年2月1日;下学期 2月1日 – 9月1日 + //if (today.Month >= 9 || today.Month < 2) // 上学期 + //{ + // startDate = new DateTime(today.Month >= 9 ? today.Year : today.Year - 1, 1, 1); + // endDate = new DateTime(today.Month >= 9 ? today.Year + 1 : today.Year, 2, 1); + //} + //else // 下学期 + //{ + // startDate = new DateTime(today.Year, 2, 1); + // endDate = new DateTime(today.Year, 10, 1); + //} + + DateTime startDate = new DateTime(2025, 1, 1); + DateTime endDate = DateTime.Now; var SmartPlaygroundKey = $"SmartPlayground_{tenantId}";