拆箱拼箱功能优化,标签解析功能优化
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user