From c77ccb14bc6540a59bfe298af2c36e2f88c31910 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周五, 13 12月 2024 16:57:18 +0800
Subject: [PATCH] 222
---
LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ThirdInterFace/MesPushPackageCode/MesPushPackageCodeService.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ThirdInterFace/MesPushPackageCode/MesPushPackageCodeService.cs b/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ThirdInterFace/MesPushPackageCode/MesPushPackageCodeService.cs
index 9845132..eeb0504 100644
--- a/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ThirdInterFace/MesPushPackageCode/MesPushPackageCodeService.cs
+++ b/LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/ThirdInterFace/MesPushPackageCode/MesPushPackageCodeService.cs
@@ -138,12 +138,12 @@
.Select<MesPushPackageCodeOutput>();
if(input.PushTimeRange != null && input.PushTimeRange.Count >0)
{
- DateTime? start= input.PushTimeRange[0].Value.AddDays(-1);
- query = query.WhereIF(start.HasValue, u => u.PushTime > start);
+ DateTime? start= input.PushTimeRange[0].Value;
+ query = query.WhereIF(start.HasValue, u => u.PushTime >= start);
if (input.PushTimeRange.Count >1 && input.PushTimeRange[1].HasValue)
{
- var end = input.PushTimeRange[1].Value.AddDays(1);
- query = query.Where(u => u.PushTime < end);
+ var end = input.PushTimeRange[1].Value;
+ query = query.Where(u => u.PushTime <= end);
}
}
return query;
--
Gitblit v1.9.3