仓库-仓库拼箱拆箱待打印记录功能添加
This commit is contained in:
@@ -37,12 +37,18 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
[Log(Title = "拼箱", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult doConsolidationGoods([FromBody] WmGoodsConsolidationDto parm)
|
||||
{
|
||||
WmGoodsChangeLog response = _WmGoodsActionService.doConsolidationGoods(parm);
|
||||
if(response == null)
|
||||
try
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "拼箱异常!", "拼箱异常!"));
|
||||
WmGoodsChangeLog response = _WmGoodsActionService.doConsolidationGoods(parm);
|
||||
if (response == null)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "拼箱异常!", "拼箱异常!"));
|
||||
}
|
||||
return SUCCESS(response);
|
||||
}catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, "拼箱异常!"));
|
||||
}
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -53,8 +59,20 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
[Log(Title = "拆箱", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult doUnpackingGoods([FromBody] WmGoodsUnpackingDto parm)
|
||||
{
|
||||
WmGoodsChangeLog response = _WmGoodsActionService.doUnpackingGoods(parm);
|
||||
return SUCCESS(response);
|
||||
try
|
||||
{
|
||||
WmGoodsChangeLog response = _WmGoodsActionService.doUnpackingGoods(parm);
|
||||
if (response == null)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "拆箱异常!", "拆箱异常!"));
|
||||
}
|
||||
return SUCCESS(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, "拆箱异常!"));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user