修复bug

This commit is contained in:
18942506660
2023-12-29 10:45:50 +08:00
parent 1554afbbf5
commit 9756aea807
2 changed files with 2 additions and 2 deletions

View File

@@ -412,7 +412,7 @@ namespace WMS.Web.Api.Controllers
var response = res[0];
var detail = await _moveBoxRecordRepositories.GetDetailsByBoxId(response.Id);
if (detail.Count() == 0)
return Result<BoxResponse>.ReFailure("箱号" + boxBillNo + "未出库", 800000);
return Result<BoxResponse>.ReFailure("箱号" + boxBillNo + "未移箱下架", 800000);
response.Details = detail;
response.TotalQty = detail.Sum(s => s.Qty);
return Result<BoxResponse>.ReSuccess(response);

View File

@@ -113,7 +113,7 @@ namespace WMS.Web.Repositories
{
var res = await _context.MoveBoxRecord
.Include(s => s.Details)
.Where(f => f.BoxId==boxId)
.Where(f => f.BoxId == boxId && f.Type == MoveBoxType.Down)
.OrderByDescending(o => o.Id)
.ToListAsync();
List<BoxDetailResponse> details = new List<BoxDetailResponse>();