优化接口

This commit is contained in:
tongfei
2024-01-03 17:09:44 +08:00
parent 8413977398
commit 1b0bf3a9c9
4 changed files with 24 additions and 4 deletions

View File

@@ -172,6 +172,12 @@ namespace WMS.Web.Repositories
return await _context.BoxInventory.Include(x => x.Details).Where(x => ids.Contains(x.BoxId)).ToListAsync();
}
public async Task<bool> IsExist(int boxId)
{
return await _context.BoxInventory.Where(x => x.BoxId == boxId).AnyAsync();
}
/// <summary>
/// 实体-根据箱id
/// </summary>