质检看板反馈优化
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>
|
||||
/// 获取质量检测工单,生产线数据列表
|
||||
|
||||
@@ -285,7 +285,7 @@ namespace ZR.Service.mes.qc
|
||||
.First();
|
||||
if (proWorkOrder == null)
|
||||
{
|
||||
return null;
|
||||
throw new Exception("未在生产工单中找到该工单!");
|
||||
}
|
||||
//
|
||||
QcCommonFqcBoardDto boardData = new QcCommonFqcBoardDto();
|
||||
@@ -353,7 +353,7 @@ namespace ZR.Service.mes.qc
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return null;
|
||||
throw new Exception(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user