From d9c99e0480b4910cdb134778dd5c314b35ec4cf2 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期一, 29 九月 2025 10:05:23 +0800 Subject: [PATCH] 1 --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Interface/WCSInterfaceController.cs | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 54 insertions(+), 3 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Interface/WCSInterfaceController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Interface/WCSInterfaceController.cs" index c81c761..872fbbf 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Interface/WCSInterfaceController.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Interface/WCSInterfaceController.cs" @@ -1,7 +1,11 @@ 锘縰sing Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using WIDESEA_Common; using WIDESEA_Core; using WIDESEA_IBasicService; +using WIDESEA_ITaskInfoService; +using WIDESEA_Model.Models; +using WIDESEAWCS_DTO.WCSInfo; namespace WIDESEA_WMSServer.Controllers { @@ -10,14 +14,61 @@ public class WCSInterfaceController : Controller { private readonly ILocationInfoService _locationInfoService; - public WCSInterfaceController(ILocationInfoService locationInfoService) + private readonly ITaskService _taskService; + public WCSInterfaceController(ILocationInfoService locationInfoService, ITaskService taskService) { _locationInfoService = locationInfoService; + _taskService = taskService; } + /// <summary> + /// 鑾峰彇绌挎杞︽斁浣嶇疆 + /// </summary> + /// <param name="position"></param> + /// <returns></returns> [HttpPost, Route("GetPosition")] - public WebResponseContent GetPosition(string position) + public WebResponseContent GetPosition(string position, string position1) { - return _locationInfoService.GetPosition(position); + return _locationInfoService.GetPosition(position, position1); + } + /// <summary> + /// 淇敼浠诲姟鐘舵�� + /// </summary> + /// <param name="task"></param> + /// <returns></returns> + [HttpPost, Route("UpdateTaskStatus")] + public WebResponseContent UpdateTaskStatus([FromBody] WMSTaskDTO task) + { + return _taskService.UpdateTaskStatus(task); + } + /// <summary> + /// 杈撻�佺嚎鐢宠鍏ュ簱 + /// </summary> + /// <param name="task"></param> + /// <returns></returns> + [HttpPost, Route("ConveyorLineRequestInbound")] + public WebResponseContent ConveyorLineRequestInbound([FromBody] ConveyorLineDTO lineDTO) + { + return _taskService.ConveyorLineRequestInbound(lineDTO); + } + /// <summary> + /// 鍫嗗灈鏈虹敵璇峰叆搴� + /// </summary> + /// <param name="task"></param> + /// <returns></returns> + [HttpPost, Route("StackerCraneRequestInbound")] + public WebResponseContent StackerCraneRequestInbound([FromBody] ConveyorLineDTO lineDTO) + { + return _taskService.NewStackerCraneRequestInbound(lineDTO); + } + /// <summary> + /// AGV鍙栨秷浠诲姟 + /// </summary> + /// <param name="task"></param> + /// <returns></returns> + [HttpPost, Route("CancelTask")] + public WebResponseContent CancelTask([FromBody] WMSTaskDTO task) + { + return _taskService.CancelTask(task); } } } -- Gitblit v1.9.3