优化接口

This commit is contained in:
tongfei
2024-02-20 15:41:19 +08:00
parent ac4a1493bd
commit 1bd3fba85e
2 changed files with 3 additions and 8 deletions

View File

@@ -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.BoxMark.Include(x=>x.BillNos).Where(f => ids.Contains(f.Id)).ToListAsync();
_context.BoxMark.RemoveRange(list);
var list = await _context.BoxMarkBillNo.Where(f => ids.Contains(f.Id)).ToListAsync();
_context.BoxMarkBillNo.RemoveRange(list);
await _context.SaveChangesAsync();
if (_transaction != null)