From 804643d035adda546b2d6e8102ef0523ec5c3652 Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Tue, 4 Mar 2025 16:24:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=B0=83=E6=8B=A8=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E5=8F=96=E7=8A=B6=E6=80=81=E5=8F=8A=E6=9F=A5=E6=95=88?= =?UTF-8?q?=E6=9C=9F=E5=8F=AA=E6=9F=A5=E5=88=B0=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/ViewModels/InvoiceInWindowViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DM_Weight/ViewModels/InvoiceInWindowViewModel.cs b/DM_Weight/ViewModels/InvoiceInWindowViewModel.cs index ed48102..c8da0d4 100644 --- a/DM_Weight/ViewModels/InvoiceInWindowViewModel.cs +++ b/DM_Weight/ViewModels/InvoiceInWindowViewModel.cs @@ -207,7 +207,7 @@ namespace DM_Weight.ViewModels { List q = SqlSugarHelper.Db.Queryable() .Includes(cs => cs.DrugInfo) - .WhereIF(!string.IsNullOrEmpty(invoice.DrugEffDate), cs => cs.EffDate.Equals(invoice.DrugEffDate)) + .WhereIF(!string.IsNullOrEmpty(invoice.DrugEffDate), cs => cs.EffDate.Substring(0,10).Equals(invoice.DrugEffDate.Substring(0,10))) .WhereIF(!string.IsNullOrEmpty(invoice.DrugManuNo), cs => cs.ManuNo.Equals(invoice.DrugManuNo)) .Where(cs => cs.DrugId == invoice.DrugId) .Where(cs => cs.DrawerType == 1) @@ -334,7 +334,7 @@ namespace DM_Weight.ViewModels sb.Append(" and i.cancel_flag=@CancelFlag "); if (OrderDate != null) { - sb.Append(" and i.invoice_date = @CreateTime "); + sb.Append(" and DATE_FORMAT(i.invoice_date,'%Y-%m-%d') = @CreateTime "); } if (!String.IsNullOrEmpty(SearchValue)) {