This commit is contained in:
tongfei
2024-03-06 09:35:53 +08:00
parent 0f3c56d1f2
commit 0f53970433

View File

@@ -450,14 +450,18 @@ namespace WMS.Web.Repositories
List<int> ids_Receiver = new List<int>();
List<int> ids_Operator = new List<int>();
var staffList = await _basicsRepositories.GetStaffListAsync(_loginRepositories.CompanyId);
if (companyId == 0)
companyId = _loginRepositories.CompanyId;
if (!string.IsNullOrEmpty(dto.Receiver))
{
var staffList = await _basicsRepositories.GetStaffListAsync(companyId);
ids_Receiver = staffList.Where(w => w.Name.Contains(dto.Receiver)).Select(s => s.Id).ToList();
}
if (!string.IsNullOrEmpty(dto.Operator))
{
var staffList = await _basicsRepositories.GetStaffListAsync(companyId);
ids_Operator = staffList.Where(w => w.Name.Contains(dto.Operator)).Select(s => s.Id).ToList();
}