箱库存方法-优化1
This commit is contained in:
@@ -128,6 +128,26 @@ namespace WMS.Web.Repositories
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 列表-根据箱ids
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<List<BoxInventory>> GetList(List<int> ids)
|
||||
{
|
||||
return await _context.BoxInventory.Include(x => x.Details).Where(x => ids.Contains(x.Id)).ToListAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实体-根据箱id
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<BoxInventory> Get(int id)
|
||||
{
|
||||
return await _context.BoxInventory.Include(x => x.Details).Where(x => x.Id==id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量添加
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user