50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
|
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
|
using DOAN.Model.PBL.Dto;
|
|||
|
|
using DOAN.Model.PBL;
|
|||
|
|
using DOAN.Service.PBL.IService;
|
|||
|
|
using DOAN.Admin.WebApi.Filters;
|
|||
|
|
|
|||
|
|
//创建时间:2024-09-23
|
|||
|
|
namespace DOAN.Admin.WebApi.Controllers.PBL
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 与MES交互
|
|||
|
|
/// </summary>
|
|||
|
|
[AllowAnonymous]
|
|||
|
|
[Route("PBL/mes_interation")]
|
|||
|
|
public class MESInteractionController : BaseController
|
|||
|
|
{
|
|||
|
|
private readonly IMESInteractionServcie mesInteraction;
|
|||
|
|
public MESInteractionController(IMESInteractionServcie mesInteraction)
|
|||
|
|
{
|
|||
|
|
this.mesInteraction = mesInteraction;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//TODO 接受工单 亮灯
|
|||
|
|
|
|||
|
|
[HttpPost("mes_light_up")]
|
|||
|
|
public IActionResult MESLightUp([FromBody] LightUpDto light)
|
|||
|
|
{
|
|||
|
|
var response= mesInteraction.MESLightUp(light);
|
|||
|
|
|
|||
|
|
return SUCCESS(response);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//TODO 扫码灭灯
|
|||
|
|
[HttpGet("mes_light_down")]
|
|||
|
|
public IActionResult MESLightDown(string scan_code)
|
|||
|
|
{
|
|||
|
|
var response = mesInteraction.MESLightDown(scan_code);
|
|||
|
|
|
|||
|
|
return SUCCESS(response);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|