成品仓库记录

This commit is contained in:
2024-08-05 17:25:52 +08:00
parent 73fce84068
commit 2c3082fa01
10 changed files with 973 additions and 427 deletions

View File

@@ -104,27 +104,35 @@ namespace ZR.Admin.WebApi.Controllers.mes.wms
[Log(Title = "入库")]
public IActionResult IntoProductwarehouse([FromBody] WmgoodsDto wmgoodsDto)
{
if (wmgoodsDto == null)
try
{
return ToResponse(new ApiResult(200, "传入为空", false));
}
string msg = "";
if (wmgoodsDto == null)
{
return ToResponse(new ApiResult(200, "传入参数为空", false));
}
string msg = "";
string createName = HttpContext.GetName();
int num = this.wm_entryWarehousing_productService.IntoProductwarehouse(wmgoodsDto, createName);
if (num == 0)
string createName = HttpContext.GetName();
int num = this.wm_entryWarehousing_productService.IntoProductwarehouse(wmgoodsDto, createName);
if (num == 0)
{
msg = "入库数为0";
}
else if (num >= 1)
{
msg = "成功入库" + num + "箱";
}
return ToResponse(new ApiResult(200, msg, num));
}
catch (Exception e)
{
msg = "数据插入异常";
return ToResponse(new ApiResult(500, e.Message, e.Message));
}
else if (num >= 1)
{
msg = "成功入库" + num + "个";
}
return ToResponse(new ApiResult(200, msg, num));
}