1.增加刷新库位显示库存接口
2.增加任务物料唯一码的保存
This commit is contained in:
@ -45,5 +45,36 @@ namespace WCS.WebApi.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 刷新库存信息 当上游系统入库后可以调用此接口对硬件显示的库存信息进行刷新
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[Route("refreshInventory")]
|
||||
[HttpPost(Name = "refreshInventory")]
|
||||
public async Task<ResponseCommon> refreshInventory(RefreshInventoryRequest request)
|
||||
{
|
||||
try
|
||||
{
|
||||
//校验传入的参数
|
||||
if (request.StoreCodes == null || request.StoreCodes.Count == 0)
|
||||
{
|
||||
return new ResponseCommon()
|
||||
{
|
||||
Code = 201,
|
||||
Message = "操作失败:缺少需要刷新的库位!",
|
||||
};
|
||||
}
|
||||
return await _mxl4Service.refreshInventoryRequest(request);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ResponseCommon()
|
||||
{
|
||||
Code = 300,
|
||||
Message = "操作失败:" + ex.Message,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user