From 3dc5b0363a97b6cb92eddb23c886fbbc9a18c6d8 Mon Sep 17 00:00:00 2001 From: TML <1448969505@qq.com> Date: Thu, 7 Jan 2021 16:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controller/SCP_INVOICE_CONTROLLER.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/SCP_INVOICE_CONTROLLER.cs b/Controller/SCP_INVOICE_CONTROLLER.cs index afa8453..20ea900 100644 --- a/Controller/SCP_INVOICE_CONTROLLER.cs +++ b/Controller/SCP_INVOICE_CONTROLLER.cs @@ -497,11 +497,11 @@ namespace CK.SCP.Controller { q = q.Where(p => p.VendName.Contains(p_entity.VendName)); } - if (p_entity.BeginTime != null && !p_entity.BeginTime.ToString().Contains("0001/1/1")) + if (p_entity.BeginTime != null && !p_entity.BeginTime.ToString("yyyy-M-d").Contains("0001-1-1")) { q = q.Where(p => p.CreateTime >= p_entity.BeginTime); } - if (p_entity.EndTime != null && !p_entity.EndTime.ToString().Contains("0001/1/1")) + if (p_entity.EndTime != null && !p_entity.EndTime.ToString("yyyy-M-d").Contains("0001-1-1")) { q = q.Where(p => p.CreateTime <= p_entity.EndTime); }