质检看板反馈优化
This commit is contained in:
@@ -87,16 +87,24 @@ namespace ZR.Admin.WebApi.Controllers.mes.qc.IQC
|
||||
[HttpGet("getWorkOrderBoardData")]
|
||||
public IActionResult GetWorkOrderBoardData(string workOrderId)
|
||||
{
|
||||
if (string.IsNullOrEmpty(workOrderId))
|
||||
try
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "工单号传入异常!", "工单号传入异常!"));
|
||||
if (string.IsNullOrEmpty(workOrderId))
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "工单号传入异常!", "工单号传入异常!"));
|
||||
}
|
||||
var result = _commonFQCService.GetWorkOrderBoardData(workOrderId);
|
||||
if (result == null)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "获取看板数据异常-01:返回值为空", result));
|
||||
}
|
||||
return ToResponse(new ApiResult(200, "ok", result));
|
||||
}
|
||||
var result = _commonFQCService.GetWorkOrderBoardData(workOrderId);
|
||||
if (result == null)
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "获取看板数据异常-01:返回值为空", result));
|
||||
return ToResponse(new ApiResult(500, "获取看板数据异常-02" + ex.Message, ex.Message));
|
||||
}
|
||||
return ToResponse(new ApiResult(200, "ok", result));
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取质量检测工单,生产线数据列表
|
||||
|
||||
Reference in New Issue
Block a user