仓库管理_物料管理:初始化
This commit is contained in:
@@ -113,23 +113,23 @@ namespace ZR.Admin.WebApi.Controllers.mes.wms
|
||||
return ToResponse(new ApiResult(200, "传入为空", false));
|
||||
}
|
||||
string msg = "";
|
||||
bool data = false;
|
||||
|
||||
string createName = HttpContext.GetName();
|
||||
|
||||
int status = this.wm_entryWarehousing_productService.IntoProductwarehouse(wmgoodsDto, createName);
|
||||
if (status == 0)
|
||||
int num = this.wm_entryWarehousing_productService.IntoProductwarehouse(wmgoodsDto, createName);
|
||||
if (num == 0)
|
||||
{
|
||||
msg = "数据插入异常";
|
||||
data = false;
|
||||
|
||||
|
||||
}
|
||||
else if (status == 1)
|
||||
else if (num >= 1)
|
||||
{
|
||||
msg = "success";
|
||||
data = true;
|
||||
msg = "成功入库"+num+"个";
|
||||
|
||||
|
||||
}
|
||||
return ToResponse(new ApiResult(200, msg, data));
|
||||
return ToResponse(new ApiResult(200, msg, num));
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取库位已经存在箱子
|
||||
|
||||
Reference in New Issue
Block a user