提交
This commit is contained in:
@@ -53,7 +53,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
{
|
||||
var hello = _localizer["hello"].Value;
|
||||
return Ok($"{hello}看到这里页面说明你已经成功启动了本项目:)\n\n" +
|
||||
"如果觉得项目有用,打赏作者喝杯咖啡作为奖励\n☛☛http://www.izhaorui.cn/vip\n");
|
||||
"苏州道安自动化有限公司");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -5,7 +5,7 @@ using DOAN.Service.PBL.IService;
|
||||
using DOAN.Admin.WebApi.Filters;
|
||||
|
||||
//创建时间:2024-09-23
|
||||
namespace DOAN.Admin.WebApi.Controllers.Business
|
||||
namespace DOAN.Admin.WebApi.Controllers.PBL
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料清单
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
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)
|
||||
{
|
||||
if(string.IsNullOrEmpty(scan_code))
|
||||
{
|
||||
throw new CustomException("扫描内容为空");
|
||||
}
|
||||
var response = mesInteraction.MESLightDown(scan_code);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ using DOAN.Service.PBL.IService;
|
||||
using DOAN.Admin.WebApi.Filters;
|
||||
|
||||
//创建时间:2024-09-23
|
||||
namespace DOAN.Admin.WebApi.Controllers.Business
|
||||
namespace DOAN.Admin.WebApi.Controllers.PBL
|
||||
{
|
||||
/// <summary>
|
||||
/// 料架表
|
||||
|
||||
Reference in New Issue
Block a user