删除-删除批次的
This commit is contained in:
@@ -260,7 +260,7 @@ namespace WMS.Web.Repositories
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 批量删除:只删除对应的箱唛编号
|
/// 批量删除
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -271,8 +271,8 @@ namespace WMS.Web.Repositories
|
|||||||
_transaction = _context.Database.BeginTransaction();
|
_transaction = _context.Database.BeginTransaction();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var list = await _context.BoxMarkBillNo.Where(f => ids.Contains(f.Id)).ToListAsync();
|
var list = await _context.BoxMark.Include(x=>x.BillNos).Where(f => ids.Contains(f.Id)).ToListAsync();
|
||||||
_context.BoxMarkBillNo.RemoveRange(list);
|
_context.BoxMark.RemoveRange(list);
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
|
|
||||||
if (_transaction != null)
|
if (_transaction != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user