From 68343df577836d29f8bd106823b1805d365f4a54 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期四, 17 七月 2025 16:23:40 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/ZhiHuiQiCe/LongDeLiLiKu

---
 项目代码/WCS/WCSServices/WIDESEAWCS_Server/Controllers/Task/TaskController.cs |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Server/Controllers/Task/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
index 7e56cfb..2b8260b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
@@ -2,8 +2,10 @@
 using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
+using WIDESEAWCS_Common.TaskEnum;
 using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.BaseController;
+using WIDESEAWCS_Core.Helper;
 using WIDESEAWCS_DTO.TaskInfo;
 using WIDESEAWCS_ITaskInfoService;
 using WIDESEAWCS_Model.Models;
@@ -83,6 +85,36 @@
         {
             return Service.AgvCarrying(row, startColumn, endColumn, layer, targetLayer);
         }
+        /// <summary>
+        /// 娴嬭瘯鍫嗗灈鏈哄嚭搴�
+        /// </summary>
+        [HttpPost, HttpGet, Route("SCOUT"), AllowAnonymous]
+        public WebResponseContent SCCarrying(string sourceAddress, string roadWay, int taskType)
+        {
+            WMSTaskDTO taskDTO = new WMSTaskDTO()
+            {
+                Id = 1,
+                SourceAddress = sourceAddress,
+                TaskNum = DateTime.Now.ToString("mmss").ObjToInt(),
+                PalletCode= roadWay+ DateTime.Now.ToString("mmss"),
+                RoadWay = roadWay,
+                TaskType = taskType,
+                TaskStatus = TaskStatusEnum.New.ObjToInt(),
+                TargetAddress = "",
+                Grade = 0,
+                WarehouseId = 1,
+                PalletType = 1
+            };
+            return Service.ReceiveWMSTask(new List<WMSTaskDTO> { taskDTO });
+        }
+        /// <summary>
+        /// 娴嬭瘯鍫嗗灈鏈哄叆搴�
+        /// </summary>
+        [HttpPost, HttpGet, Route("SCIN"), AllowAnonymous]
+        public WebResponseContent RequestWMSTaskSimple(string palletCode, string sourceAddress, int taskType = 0)
+        {
+            return Service.RequestWMSTaskSimple(palletCode,sourceAddress,taskType);
+        }
         //[HttpPost, HttpGet, Route("WebSocketPushMessage"), AllowAnonymous]
         //public WebResponseContent WebSocketPushMessage(string message)
         //{

--
Gitblit v1.9.3