From 8f9b9411ca279670bd85fcfa7763987295ed9abf Mon Sep 17 00:00:00 2001
From: zhanghonglin <zhanghonglin@hnkhzn.com>
Date: 星期五, 10 四月 2026 10:55:38 +0800
Subject: [PATCH] 空桶入出扩展开发
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs | 29 ++++++++---------------------
1 files changed, 8 insertions(+), 21 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 84105a0..366c7ff 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 ,null);
}
//鎵嬪姩绔嬪嵆瀹屾垚浠诲姟
@@ -82,23 +69,23 @@
//澶у睆鐢佃鏌ヨ浠诲姟
[HttpPost, HttpGet, Route("selectTask"), AllowAnonymous]
- public List<Dt_Task_Hty> selectTask()
+ public List<Dt_Task> selectTask()
{
return Service.selectTask();
}
//娴嬭瘯鎺ュ彛
[HttpPost, HttpGet, Route("ceshi"), AllowAnonymous]
- public WebResponseContent ceshi()
+ public string ceshi()
{
return Service.ceshi();
}
-
- //WCS婊℃《鍑哄簱淇″彿
- [HttpPost, HttpGet, Route("WCSSignal"), AllowAnonymous]
- public WebResponseContent WCSSignal(int k)
+
+ //鎵ц璁㈠崟
+ [HttpPost, HttpGet, Route("ExecuteOrder"), AllowAnonymous]
+ public string ExecuteOrder(int k)
{
- return Service.WCSSignal(k);
+ return Service.ExecuteOrder(k);
}
}
}
--
Gitblit v1.9.3