优化
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user