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