增加提示
This commit is contained in:
@@ -396,6 +396,9 @@ namespace WMS.Web.Api.Controllers
|
|||||||
var res = await _boxRepositories.GetBox(new List<string>() { boxBillNo });
|
var res = await _boxRepositories.GetBox(new List<string>() { boxBillNo });
|
||||||
if (res.Count() <= 0)
|
if (res.Count() <= 0)
|
||||||
return Result<BoxResponse>.ReFailure("箱号" + boxBillNo + "不存在", 800000);
|
return Result<BoxResponse>.ReFailure("箱号" + boxBillNo + "不存在", 800000);
|
||||||
|
var inventory = await _boxInventoryRepositories.GetInfoBy(boxBillNo);
|
||||||
|
if (inventory != null)
|
||||||
|
return Result<BoxResponse>.ReFailure("箱号" + boxBillNo + "已上架,无需在上架", 800000);
|
||||||
var response = res[0];
|
var response = res[0];
|
||||||
var detail = await _outStockRepositories.GetDetailsByBoxId(response.Id);
|
var detail = await _outStockRepositories.GetDetailsByBoxId(response.Id);
|
||||||
if (detail.Count() == 0)
|
if (detail.Count() == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user