拆箱拼箱功能优化,标签解析功能优化

This commit is contained in:
2024-05-15 11:07:24 +08:00
parent 522cba1fbd
commit 5e0be58a1d
7 changed files with 155 additions and 50 deletions

View File

@@ -159,17 +159,25 @@ namespace ZR.Admin.WebApi.Controllers.mes.wms
[HttpGet("resolution_package")]
public IActionResult ResolutionPackage(string code = "")
{
if (string.IsNullOrEmpty(code))
try
{
if (string.IsNullOrEmpty(code))
{
return ToResponse(new ApiResult(200, "传入为空", false));
return ToResponse(new ApiResult(200, "传入为空", false));
}
ResultionPackageCodeDto data = this.wm_entryWarehousing_productService.ResolutionPackage(code);
if (data == null)
{
return ToResponse(new ApiResult(500, "外标签解析异常", data));
}
return ToResponse(new ApiResult(200, "success", data));
}
ResultionPackageCodeDto data = this.wm_entryWarehousing_productService.ResolutionPackage(code);
if (data == null)
catch(Exception ex)
{
return ToResponse(new ApiResult(500, "外标签解析异常", data));
return ToResponse(new ApiResult(500, ex.Message, "外标签解析异常"));
}
return ToResponse(new ApiResult(200, "success", data));
;
}
/// <summary>