From 44367854ba43c6b9ca3c608883fc34151fd3e191 Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Tue, 30 Dec 2025 18:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=BC=82=E5=B8=B8=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DOAN.Service/MES/Material/MmRecordInboundService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/DOAN.Service/MES/Material/MmRecordInboundService.cs b/DOAN.Service/MES/Material/MmRecordInboundService.cs index 9aa2b05..dd6056b 100644 --- a/DOAN.Service/MES/Material/MmRecordInboundService.cs +++ b/DOAN.Service/MES/Material/MmRecordInboundService.cs @@ -3,6 +3,7 @@ using DOAN.Model.BZFM.Dto; using DOAN.Repository; using DOAN.Service.BZFM.IBZFMService; using Infrastructure.Attribute; +using Infrastructure.Converter; using Infrastructure.Extensions; using Microsoft.IdentityModel.Tokens; @@ -21,6 +22,11 @@ namespace DOAN.Service.BZFM /// public PagedInfo GetList(MmRecordInboundQueryDto parm) { + // 本地化日期,避免时差异常 + if (parm != null && parm.CreatedTime != null) + { + parm.CreatedTime = DOANConvertDate.ConvertLocalDate(parm.CreatedTime.Value); + } var predicate = QueryExp(parm); var response = Queryable() @@ -75,7 +81,7 @@ namespace DOAN.Service.BZFM var predicate = Expressionable.Create() .AndIF(!string.IsNullOrEmpty(parm.SupplierCode), it => it.SupplierCode.Contains(parm.SupplierCode)) .AndIF(!string.IsNullOrEmpty(parm.Operator), it => it.Operator.Contains(parm.Operator)) - //.AndIF(!string.IsNullOrEmpty(parm.CreatedTime), it => it.CreatedTime.Contains(parm.CreatedTime)) + .AndIF(parm.CreatedTime > DateTime.MinValue, it => it.CreatedTime < parm.CreatedTime) ; return predicate;