From c2cdf0b95d4c9214646c860609b8c838d6ffa779 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期五, 15 八月 2025 13:42:10 +0800
Subject: [PATCH] AGV,成品库代码更新上传
---
项目代码/WCS/WCSServices/WIDESEAWCS_Server/Controllers/Task/TaskController.cs | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 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..8e1d69a 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,40 @@
{
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>
+ /// <param name="palletCode">鎵樼洏鍙�</param>
+ /// <param name="sourceAddress">璧峰鍦板潃</param>
+ /// <param name="roadWay">宸烽亾</param>
+ /// <returns></returns>
+ [HttpPost, HttpGet, Route("SCIN"), AllowAnonymous]
+ public WebResponseContent RequestWMSTaskSimple(string palletCode, string sourceAddress, string roadWay, int taskType = 0)
+ {
+ return Service.RequestWMSTaskSimple(palletCode,sourceAddress, roadWay, taskType);
+ }
//[HttpPost, HttpGet, Route("WebSocketPushMessage"), AllowAnonymous]
//public WebResponseContent WebSocketPushMessage(string message)
//{
--
Gitblit v1.9.3