修复bug
This commit is contained in:
@@ -91,7 +91,8 @@ namespace WMS.Web.Repositories
|
||||
if (!string.IsNullOrEmpty(dto.Creator))
|
||||
{
|
||||
var staffList = await _basicsRepositories.GetStaffListAsync(companyId);
|
||||
ids = staffList.Where(w => w.Name.Contains(dto.Creator)).Select(s => s.Id).ToList();
|
||||
if (staffList != null)
|
||||
ids = staffList.Where(w => w.Name.Contains(dto.Creator)).Select(s => s.Id).ToList();
|
||||
}
|
||||
#region erp基础资料
|
||||
List<int> mIds = new List<int>();
|
||||
@@ -100,7 +101,8 @@ namespace WMS.Web.Repositories
|
||||
//物料集合;模糊查询后的物料集合
|
||||
if (!string.IsNullOrEmpty(dto.MaterialNumber))
|
||||
{
|
||||
mIds = materials.Where(w => w.MaterialNumber.Contains(dto.MaterialNumber)).Select(s => s.MaterialId).ToList();
|
||||
if (materials != null)
|
||||
mIds = materials.Where(w => w.MaterialNumber.Contains(dto.MaterialNumber)).Select(s => s.MaterialId).ToList();
|
||||
}
|
||||
|
||||
//取组织
|
||||
|
||||
Reference in New Issue
Block a user