From b1f56a3a6c9ab7a46ccda42289dfc93fafcb7d96 Mon Sep 17 00:00:00 2001 From: xxe Date: Wed, 2 Nov 2022 10:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=9F=A5=E8=A9=A2=E4=BB=8A=E5=A4=A9?= =?UTF-8?q?=E5=88=B7=E5=8D=A1=E4=BA=BA=E6=95=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardOUT/Logic/Service/HKCore.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HKCardOUT/Logic/Service/HKCore.cs b/HKCardOUT/Logic/Service/HKCore.cs index 3294e27..dd5e614 100644 --- a/HKCardOUT/Logic/Service/HKCore.cs +++ b/HKCardOUT/Logic/Service/HKCore.cs @@ -257,7 +257,8 @@ namespace HKCardOUT.Logic.Service /// public List PullDaySaleLog(int screen) { - var data = DbContext.Context.Queryable() + var today = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")); + var data = DbContext.Context.Queryable().Where(t => t.CreateTime >= today) .WhereIF(screen == 0, t => t.Location == "3" || t.Location == "4") .WhereIF(screen == 1, t => t.Location == "1" || t.Location == "2") .WhereIF(screen == 2, t => t.Location == "5" || t.Location == "6")