成品仓库记录
This commit is contained in:
@@ -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));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user