仓库数据看板
This commit is contained in:
@@ -128,5 +128,24 @@ namespace ZR.Admin.WebApi.Controllers.mes.qc.IQC
|
||||
return ToResponse(new ApiResult(500, ex.Message, ex.Message));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取产线,抛光,一次合格品质量报表看板数据
|
||||
/// </summary>
|
||||
/// <param name="query">查询值</param>
|
||||
/// <returns>QcCommonFqcBoardDto 看板数据</returns>
|
||||
[HttpPost("getProductAndPolishAndOneTimeFqcBoardData")]
|
||||
public IActionResult GetProductAndPolishAndOneTimeFqcBoardData()
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = _commonFQCService.GetProductAndPolishAndOneTimeFqcBoardData();
|
||||
return ToResponse(new ApiResult(200, "ok", result));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, ex.Message, ex.Message));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,8 +95,11 @@ namespace ZR.Admin.WebApi.Extensions
|
||||
/// <returns></returns>
|
||||
public static bool IsAdmin(this HttpContext context)
|
||||
{
|
||||
List<string> roles = new();
|
||||
roles.Add($"{GlobalConstant.AdminRole}");
|
||||
roles.Add("杨琳磊");
|
||||
var userName = context.GetName();
|
||||
return userName == GlobalConstant.AdminRole;
|
||||
return roles.Contains(userName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user