This commit is contained in:
SMR
2024-10-21 14:50:20 +08:00
parent d4fd12fd96
commit dec6b8582f
21 changed files with 409 additions and 16 deletions

View File

@@ -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>

View File

@@ -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>
/// 物料清单

View File

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

View File

@@ -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>
/// 料架表