1.增加刷新库位显示库存接口

2.增加任务物料唯一码的保存
This commit is contained in:
hehaibing-1996
2024-11-27 17:38:01 +08:00
parent 3fc9f8a0c9
commit cfbf6a81c8
7 changed files with 106 additions and 0 deletions

View File

@ -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,
};
}
}
}
}