From dbb43efdb56e2abc45debf76dfc412d1f876bdb0 Mon Sep 17 00:00:00 2001 From: 18923810322 <1666941798@qq.com> Date: Wed, 27 May 2026 17:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=BA=86=E5=85=A5=E5=BA=93=E4=BD=9C?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WMS.Web.Repositories/InStockTaskRepositories.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/WMS.Web.Repositories/InStockTaskRepositories.cs b/src/WMS.Web.Repositories/InStockTaskRepositories.cs index 3b9d1a89..fd9e3e48 100644 --- a/src/WMS.Web.Repositories/InStockTaskRepositories.cs +++ b/src/WMS.Web.Repositories/InStockTaskRepositories.cs @@ -217,8 +217,16 @@ namespace WMS.Web.Repositories for (int i = 0; i < resList.Count(); i++) { var bList = instockTaskBoxList.Where(w => w.BoxId == bid).OrderBy(x => x.CreateTime).ToList(); - resList[i].Receiver = _singleDataService.GetSingleData(SingleAction.Staffs, companyId, bList[i].ReceiverId ?? 0); - resList[i].ReceiveTime = bList[i].CreateTime.HasValue ? bList[i].CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss") : ""; + if (bList.Count == 1) + { + resList[i].Receiver = _singleDataService.GetSingleData(SingleAction.Staffs, companyId, bList[0].ReceiverId ?? 0); + resList[i].ReceiveTime = bList[0].CreateTime.HasValue ? bList[0].CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss") : ""; + } + else + { + resList[i].Receiver = _singleDataService.GetSingleData(SingleAction.Staffs, companyId, bList[i].ReceiverId ?? 0); + resList[i].ReceiveTime = bList[i].CreateTime.HasValue ? bList[i].CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss") : ""; + } } //如果收货的条数大于入库的条数 代表有收货未入库的 需要添加 if (resList.Count() < instockTaskBoxList.Where(w => w.BoxId == bid).Count())