using Microsoft.AspNetCore.Mvc; using DOAN.Admin.WebApi.Filters; using DOAN.Service.MES.bigScreen.IService; using DOAN.Infrastructure; namespace DOAN.WebApi.Controllers.MES.BigScreen { /// /// 设备台账 /// [Verify] [Route("mes/bigscreen/materialprogress")] public class MaterialProgressScreenController : BaseController { private readonly IMaterialProgressService materialProgressService; public MaterialProgressScreenController(IMaterialProgressService materialProgressService) { this.materialProgressService = materialProgressService; } /// /// 查看备料进度大屏 /// /// /// /// [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); } } }