From a97a624c1fb269a059f97629076433c46b4e8b4c Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周三, 13 8月 2025 14:42:08 +0800
Subject: [PATCH] //如果是连续打印,则不调用打印服务,解决重复打印的问题 【Editby shaocx,2025-08-13】

---
 LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordUpiProcess/WmsRecordUpiProcessService.cs |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordUpiProcess/WmsRecordUpiProcessService.cs b/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordUpiProcess/WmsRecordUpiProcessService.cs
index af9b009..8fab62f 100644
--- a/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordUpiProcess/WmsRecordUpiProcessService.cs
+++ b/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ReportCenter/WmsRecordUpiProcess/WmsRecordUpiProcessService.cs
@@ -148,7 +148,18 @@
             .WhereIF(!string.IsNullOrWhiteSpace(input.DetailName), u => u.DetailName.Contains(input.DetailName.Trim()))
             .WhereIF(!string.IsNullOrWhiteSpace(input.Info18), u => u.Info18.Contains(input.Info18.Trim()))
             .WhereIF(!string.IsNullOrWhiteSpace(input.OperRemark), u => u.OperRemark.Contains(input.OperRemark.Trim()))
+            .WhereIF(input.Shelf>0, u => u.Shelf == input.Shelf)
             .Select<WmsRecordUpiProcessOutput>();
+        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