From 04d10bce51a6272d02a4a0f1b05a4f64bf73f273 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 05 8月 2025 16:48:03 +0800 Subject: [PATCH] 休眠10秒 ,2秒改为10秒 【Editby shaocx,2025-08-05】 --- LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordPackageProcess/WmsRecordPackageProcessService.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordPackageProcess/WmsRecordPackageProcessService.cs b/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordPackageProcess/WmsRecordPackageProcessService.cs index cf0b48a..b811b32 100644 --- a/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordPackageProcess/WmsRecordPackageProcessService.cs +++ b/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordPackageProcess/WmsRecordPackageProcessService.cs @@ -143,6 +143,16 @@ .WhereIF(!string.IsNullOrWhiteSpace(input.Location), u => u.Location.Contains(input.Location.Trim())) .WhereIF(!string.IsNullOrWhiteSpace(input.OperRemark), u => u.OperRemark.Contains(input.OperRemark.Trim())) .Select<WmsRecordPackageProcessOutput>(); + if(input.CreateTimeRange != null && input.CreateTimeRange.Count >0) + { + DateTime? start= input.CreateTimeRange[0].Value; + query = query.WhereIF(start.HasValue, u => u.CreateTime >= start); + if (input.CreateTimeRange.Count >1 && input.CreateTimeRange[1].HasValue) + { + var end = input.CreateTimeRange[1].Value; + query = query.Where(u => u.CreateTime <= end); + } + } return query; } -- Gitblit v1.9.3