From f1d726e3de8f15cdfe30d4ca5fbba733d73a1e56 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期六, 17 一月 2026 09:58:33 +0800
Subject: [PATCH] 同步
---
项目代码/WMS/WMSServer/WIDESEA_WMSServer/Controllers/MES/MESController.cs | 71 ++++++++++++++++++++++++++++++++++-
1 files changed, 68 insertions(+), 3 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_WMSServer/Controllers/MES/MESController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_WMSServer/Controllers/MES/MESController.cs"
index adc1050..07fa43e 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_WMSServer/Controllers/MES/MESController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_WMSServer/Controllers/MES/MESController.cs"
@@ -7,7 +7,7 @@
namespace WIDESEA_WMSServer.Controllers;
-[Route("api/[controller]")]
+[Route("api/BDC")]
[ApiController]
public class MESController : Controller
{
@@ -26,9 +26,9 @@
/// <param name="stationCode"></param>
/// <returns></returns>
[HttpPost, Route("PassPoint"), AllowAnonymous]
- public WebResponseContent PassPoint(string stationCode)
+ public WebResponseContent PassPoint(string stationCode, string rfid)
{
- return _MESService.PassPoint(stationCode);
+ return _MESService.PassPoint(stationCode, rfid);
}
/// <summary>
@@ -42,6 +42,16 @@
return _MESService.prebind(json);
}
+ /// <summary>
+ /// 娑傝宸ュ崟
+ /// </summary>
+ /// <param name="json"></param>
+ /// <returns></returns>
+ [HttpPost, Route("pushWorkOrderInfo"), AllowAnonymous]
+ public WebResponseContent pushWorkOrderInfo([FromBody] object json)
+ {
+ return _MESService.pushWorkOrderInfo(json);
+ }
/// <summary>
/// 鎬昏宸ュ崟
@@ -55,6 +65,17 @@
}
/// <summary>
+ /// 宸ュ崟鎺掓挙
+ /// </summary>
+ /// <param name="json"></param>
+ /// <returns></returns>
+ [HttpPost, Route("removeWorkOrderInfo"), AllowAnonymous]
+ public WebResponseContent removeWorkOrderInfo([FromBody] object json)
+ {
+ return _MESService.removeWorkOrderInfo(json);
+ }
+
+ /// <summary>
/// BDC璇锋眰鐒婅杞﹁韩淇℃伅
/// </summary>
/// <param name="json"></param>
@@ -64,4 +85,48 @@
{
return _MESService.issuedCharacter(carCode, vin, station);
}
+
+ /// <summary>
+ /// BDC璇锋眰杞﹁韩鐗瑰緛
+ /// </summary>
+ /// <param name="json"></param>
+ /// <returns></returns>
+ [HttpPost, Route("getCharacteristic"), AllowAnonymous]
+ public WebResponseContent getCharacteristic([FromBody] string station, string rfid)
+ {
+ return _MESService.getCharacteristic(station, rfid);
+ }
+
+ /// <summary>
+ /// MES鎷夊姩閿佽溅
+ /// </summary>
+ /// <param name="stationCode"></param>
+ /// <returns></returns>
+ [HttpPost, Route("pullLock"), AllowAnonymous]
+ public WebResponseContent pullLock([FromBody] object json)
+ {
+ return _MESService.pullLock(json);
+ }
+
+ /// <summary>
+ /// MES鍚屾璁㈠崟鐗瑰緛
+ /// </summary>
+ /// <param name="stationCode"></param>
+ /// <returns></returns>
+ [HttpPost, Route("syncOrderFeature"), AllowAnonymous]
+ public WebResponseContent syncOrderFeature([FromBody] object json)
+ {
+ return _MESService.syncOrderFeature(json);
+ }
+
+ /// <summary>
+ /// 鐩撮�氭秱瑁呯粦瀹氬伐鍗�
+ /// </summary>
+ /// <param name="stationCode"></param>
+ /// <returns></returns>
+ [HttpPost, Route("bindWorkOrder"), AllowAnonymous]
+ public WebResponseContent bindWorkOrder([FromBody] string station, string rfid)
+ {
+ return _MESService.bindWorkOrder(station, rfid);
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3