zhuangpei-mesbackend/DOAN.Admin.WebApi/Controllers/MES/BigScreen/MaterialProgressScreenController.cs
2024-10-15 11:05:51 +08:00

43 lines
1.3 KiB
C#

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);
}
}
}