This commit is contained in:
tongfei
2024-03-06 14:31:51 +08:00
parent 872357fb36
commit 9263e25230

View File

@@ -456,14 +456,14 @@ namespace WMS.Web.Repositories
if (!string.IsNullOrEmpty(dto.Receiver)) if (!string.IsNullOrEmpty(dto.Receiver))
{ {
var staffList = await _basicsRepositories.GetStaffListAsync(companyId); var staffList = await _basicsRepositories.GetStaffListAsync(companyId);
if (staffList != null && staffList.Count!=0) if (staffList != null)
ids_Receiver = staffList.Where(w => w.Name.Contains(dto.Receiver)).Select(s => s.Id).ToList(); ids_Receiver = staffList.Where(w => w.Name.Contains(dto.Receiver)).Select(s => s.Id).ToList();
} }
if (!string.IsNullOrEmpty(dto.Operator)) if (!string.IsNullOrEmpty(dto.Operator))
{ {
var staffList = await _basicsRepositories.GetStaffListAsync(companyId); var staffList = await _basicsRepositories.GetStaffListAsync(companyId);
if (staffList != null && staffList.Count != 0) if (staffList != null)
ids_Operator = staffList.Where(w => w.Name.Contains(dto.Operator)).Select(s => s.Id).ToList(); ids_Operator = staffList.Where(w => w.Name.Contains(dto.Operator)).Select(s => s.Id).ToList();
} }