提示语
This commit is contained in:
@@ -30,15 +30,18 @@ namespace WMS.Web.Api.Controllers
|
||||
private readonly IInventoryDetailsRepositories _inventoryDetailsRepositories;
|
||||
private readonly IInventoryInOutDetailsRepositories _inventoryInOutDetailsRepositories;
|
||||
private readonly IBoxInventoryRepositories _boxInventoryRepositories;
|
||||
private readonly IBoxRepositories _boxRepositories;
|
||||
|
||||
public InventoryController(ILoginService loginService,
|
||||
IOptions<QiniuOptions> option,
|
||||
IExportExcelService exportExcelService,
|
||||
IBoxRepositories boxRepositories,
|
||||
IInventoryDetailsRepositories inventoryDetailsRepositories,
|
||||
IInventoryInOutDetailsRepositories inventoryInOutDetailsRepositories,
|
||||
IBoxInventoryRepositories boxInventoryRepositories)
|
||||
{
|
||||
_option = option?.Value;
|
||||
this._boxRepositories = boxRepositories;
|
||||
this._exportExcelService = exportExcelService;
|
||||
this._loginService = loginService;
|
||||
this._inventoryDetailsRepositories = inventoryDetailsRepositories;
|
||||
@@ -176,6 +179,12 @@ namespace WMS.Web.Api.Controllers
|
||||
var loginInfo = _loginService.GetLoginInfo(this.HttpContext.Request.Headers["Authorization"]);
|
||||
if (loginInfo == null || loginInfo.UserInfo == null)
|
||||
return Result<BoxInventoryResponse>.ReFailure(ResultCodes.Token_Invalid_Error);
|
||||
|
||||
//找这个:是为了一个错误的箱号的提示语
|
||||
var box= await _boxRepositories.GetByNo(boxBillNo);
|
||||
if(box==null)
|
||||
return Result<BoxInventoryResponse>.ReFailure(ResultCodes.BoxNoData);
|
||||
|
||||
var result = await _boxInventoryRepositories.GetInfoBy(boxBillNo);
|
||||
if(result==null)
|
||||
return Result<BoxInventoryResponse>.ReFailure(ResultCodes.BoxInventoryNoDataError);
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace WMS.Web.Domain.Values
|
||||
public static ValueTuple<int, string> BoxHaveError = (80008, "箱号已收货");
|
||||
public static ValueTuple<int, string> AdjustError = (80009, "与金蝶校准发生错误,请稍候再试!");
|
||||
public static ValueTuple<int, string> InventoryNoSourceError = (800010, "来源数据不存在,请稍候再试!");
|
||||
public static ValueTuple<int, string> BoxInventoryNoDataError = (800011, "箱库存不存在,请稍候再试!");
|
||||
public static ValueTuple<int, string> BoxInventoryNoDataError = (800011, "该箱号不存在库存");
|
||||
public static ValueTuple<int, string> BoxInventoryMaterialNoDataError = (800041, "箱物料库存数据不存在,请稍候再试!");
|
||||
public static ValueTuple<int, string> BoxInventoryNoInventoryError = (800012, "箱库存物料数量不足,请核对后再试!");
|
||||
public static ValueTuple<int, string> InventoryDetailsNoInventoryError = (800012, "物料库存数量不足,请核对后再试!");
|
||||
|
||||
Reference in New Issue
Block a user