入库不发U8

This commit is contained in:
2025-11-06 14:32:53 +08:00
parent e62c5e0015
commit dab16650a1
6 changed files with 199 additions and 5 deletions

View File

@@ -134,6 +134,44 @@ namespace ZR.Admin.WebApi.Controllers.mes.wms
}
/// <summary>
/// 4.入库不传U8
/// </summary>
/// <param name="wmgoodsDto"></param>
/// <returns></returns>
[HttpPost("IntoProductwarehouseNoU8")]
[Log(Title = "入库(不传U8)")]
public IActionResult IntoProductwarehouseNoU8([FromBody] WmgoodsDto wmgoodsDto)
{
try
{
if (wmgoodsDto == null)
{
return ToResponse(new ApiResult(200, "传入参数为空", false));
}
string msg = "";
string createName = HttpContext.GetName();
int num = this.wm_entryWarehousing_productService.IntoProductwarehouseNoU8(wmgoodsDto, createName);
if (num == 0)
{
msg = "入库数为0";
}
else if (num >= 1)
{
msg = "成功入库" + num + "箱";
}
return ToResponse(new ApiResult(200, msg, num));
}
catch (Exception e)
{
return ToResponse(new ApiResult(500, e.Message, e.Message));
}
}
/// <summary>
/// 退货到成品库