箱集合查询序列号
This commit is contained in:
@@ -25,6 +25,8 @@ namespace WMS.Web.Domain.Infrastructure
|
|||||||
Task<List<SerialNumbers>> GetEntityList(List<string> serialNumbers);
|
Task<List<SerialNumbers>> GetEntityList(List<string> serialNumbers);
|
||||||
/// 根据箱Id查询集合
|
/// 根据箱Id查询集合
|
||||||
Task<List<SerialNumbers>> GetEntityListByBoxId(int boxId);
|
Task<List<SerialNumbers>> GetEntityListByBoxId(int boxId);
|
||||||
|
/// 根据箱Ids查询集合
|
||||||
|
Task<List<SerialNumbers>> GetEntityListByBoxIds(List<int> boxIds);
|
||||||
/// 修改实体集合
|
/// 修改实体集合
|
||||||
Task<bool> EditEntityList(List<SerialNumbers> entitys, bool isTransaction = true);
|
Task<bool> EditEntityList(List<SerialNumbers> entitys, bool isTransaction = true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,6 +113,19 @@ namespace WMS.Web.Repositories
|
|||||||
|
|
||||||
return res.Clone();
|
return res.Clone();
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 根据箱Ids查询集合
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="boxIds"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public async Task<List<SerialNumbers>> GetEntityListByBoxIds(List<int> boxIds)
|
||||||
|
{
|
||||||
|
var res = await _context.SerialNumbers
|
||||||
|
.Where(f => boxIds.Contains(f.BoxId))
|
||||||
|
.ToListAsync();
|
||||||
|
|
||||||
|
return res.Clone();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据序列号
|
/// 根据序列号
|
||||||
|
|||||||
Reference in New Issue
Block a user