From 7eb0464a56378b11528a1abdc2c4e169fee03cda Mon Sep 17 00:00:00 2001 From: liuwf Date: Thu, 17 Oct 2024 18:28:22 +0800 Subject: [PATCH] =?UTF-8?q?fix-=E4=BF=AE=E5=A4=8D=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs b/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs index 3997c3d..b971962 100644 --- a/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs +++ b/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs @@ -195,7 +195,9 @@ namespace SlnMesnac.WPF.ViewModel { try { - if (EndDate <= BeginDate) + BeginDate = BeginDate.Date; + EndDate = EndDate.AddDays(1).Date; + if (EndDate < BeginDate) { Application.Current.Dispatcher.Invoke(() => {