From 62fba9343d939801b0bf155a6c6ece7bb5c39185 Mon Sep 17 00:00:00 2001 From: hehaibing-1996 Date: Mon, 16 Jun 2025 09:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E7=9B=9F=E8=AE=AF=E5=85=AC=E5=8F=B8?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=9D=A1=E6=95=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WCS.BLL/Services/Service/OutstoreService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WCS.BLL/Services/Service/OutstoreService.cs b/WCS.BLL/Services/Service/OutstoreService.cs index c605b69..b88e6fb 100644 --- a/WCS.BLL/Services/Service/OutstoreService.cs +++ b/WCS.BLL/Services/Service/OutstoreService.cs @@ -476,8 +476,9 @@ namespace WCS.BLL.Services.Service //直接查询 var recordsQueryable = DbHelp.db.Queryable() .Where(t => request.OrderExeStatus.Contains(t.OutOrderExeStatus)) + .Where(t => t.CreateTime > DateTime.Now.AddDays(-2)) .WhereIF(request.IsMXPD != null, t => t.IsMXPD == request.IsMXPD) - .WhereIF(LocalFile.Config.IsMx, t => t.CreateTime > DateTime.Now.AddDays(-3)) + //.WhereIF(LocalFile.Config.IsMx, t => t.CreateTime > DateTime.Now.AddDays(-3)) .WhereIF(!string.IsNullOrEmpty(LocalFile.Config.GroupName), t => t.GroupName == LocalFile.Config.GroupName); var totalCount = await recordsQueryable.CountAsync(); @@ -1273,7 +1274,7 @@ namespace WCS.BLL.Services.Service { DbHelp.db.Updateable().SetColumns(it => it.IsLocked == false).Where(it => it.MatSN == listdetail.MatSN).ExecuteCommand(); } - + //灭灯 //获取需要出库的物料明细 var outOrderMatDetails = DbHelp.db.Queryable()