增加箱信息查询接口

This commit is contained in:
18942506660
2023-11-03 16:35:47 +08:00
parent d0a7308e93
commit edcab72889
2 changed files with 11 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ namespace WMS.Web.Domain.Infrastructure
public interface IBoxRepositories public interface IBoxRepositories
{ {
Task<Box> Get(int id); Task<Box> Get(int id);
Task<Box> GetByNo(string billNo);
//根据箱号查询明细信息 //根据箱号查询明细信息
Task<List<BoxResponse>> GetBox(List<string> billNos); Task<List<BoxResponse>> GetBox(List<string> billNos);
//批量修改 //批量修改

View File

@@ -94,5 +94,13 @@ namespace WMS.Web.Repositories
return true; return true;
} }
public async Task<Box> GetByNo(string billNo)
{
var entity = await _context.Box.Include(x => x.Details)
.FirstOrDefaultAsync(f => f.BoxBillNo.Equals(billNo));
return entity.Clone();
}
} }
} }