大屏
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using DOAN.Admin.WebApi.Filters;
|
||||
using DOAN.Service.MES.bigScreen.IService;
|
||||
using DOAN.Infrastructure;
|
||||
|
||||
namespace DOAN.WebApi.Controllers.MES.BigScreen
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备台账
|
||||
/// </summary>
|
||||
[Verify]
|
||||
[Route("mes/bigscreen/materialprogress")]
|
||||
public class MaterialProgressScreenController : BaseController
|
||||
{
|
||||
private readonly IMaterialProgressService materialProgressService;
|
||||
|
||||
|
||||
public MaterialProgressScreenController(IMaterialProgressService materialProgressService)
|
||||
{
|
||||
this.materialProgressService = materialProgressService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查看备料进度大屏
|
||||
/// </summary>
|
||||
/// <param name="dateTime"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="CustomException"></exception>
|
||||
[HttpGet("view_Material_paration_progress")]
|
||||
public IActionResult ViewMaterialParationProgress(DateTime dateTime)
|
||||
{
|
||||
dateTime = ConvertDateTime.ConvertLocalDate(dateTime);
|
||||
if (dateTime == DateTime.MinValue) { throw new CustomException("dateTime 为空"); }
|
||||
|
||||
var response = materialProgressService.ViewMaterialParationProgress(dateTime);
|
||||
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user