From f025b0410b4424d5bc812524471a32ebe2072504 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期日, 27 七月 2025 11:15:32 +0800 Subject: [PATCH] 更新库存查询逻辑并添加模型引用 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoHtyService.cs | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoHtyService.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoHtyService.cs index d234d42..a15349b 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoHtyService.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoHtyService.cs @@ -80,6 +80,7 @@ var data = BaseDal.Db.Queryable<DtStockInfo_Hty>() .Includes(x => x.StockInfoDetails) .Includes(x => x.LocationInfo) + .Where(x=>x.CreateDate>DateTime.Now.AddMonths(-1)) .WhereIF(!wheres.IsNullOrEmpty(), wheres) .WhereIF(locationStatus != null, locationStatus) .WhereIF(roadwayNo != null, roadwayNo) -- Gitblit v1.9.3