From cfb3f2c7e9cde8cc2eb2a19263d0802c0c5410a3 Mon Sep 17 00:00:00 2001
From: zhanghonglin <zhanghonglin@hnkhzn.com>
Date: 星期一, 06 四月 2026 15:41:04 +0800
Subject: [PATCH] mes接口
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs | 24 +++++++++---------------
1 files changed, 9 insertions(+), 15 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
index 80a7f5c..3f2d058 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
@@ -57,20 +57,7 @@
[HttpPost, HttpGet, Route("ArtificialTask"), AllowAnonymous]
public WebResponseContent ArtificialTask(int Num , string Types)
{
- int Type = 0;
- //杞崲
- if (Types.Equals("姘�"))
- {
- Type = (int)StockTypeEmun.姘�;
- }else if (Types.Equals("娌�"))
- {
- Type = (int)StockTypeEmun.娌�;
- }
- else
- {
- return WebResponseContent.Instance.Error($"鐗╂枡绉嶇被杈撳叆閿欒");
- }
- return Service.ArtificialTask(Num, Type);
+ return Service.ArtificialTask(Num, Types);
}
//鎵嬪姩绔嬪嵆瀹屾垚浠诲姟
@@ -89,7 +76,7 @@
//娴嬭瘯鎺ュ彛
[HttpPost, HttpGet, Route("ceshi"), AllowAnonymous]
- public WebResponseContent ceshi()
+ public string ceshi()
{
return Service.ceshi();
}
@@ -100,5 +87,12 @@
{
return Service.WCSSignal(k);
}
+
+ //鎵ц璁㈠崟
+ [HttpPost, HttpGet, Route("ExecuteOrder"), AllowAnonymous]
+ public string ExecuteOrder(int k)
+ {
+ return Service.ExecuteOrder(k);
+ }
}
}
--
Gitblit v1.9.3