From 41a5531dc31a642623f0a7a766fbe9c256ba9247 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期二, 11 二月 2025 13:53:29 +0800
Subject: [PATCH] 优化WMS前端
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Interface/WCSInterfaceController.cs | 43 ++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 42 insertions(+), 1 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..d10438b 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"
@@ -2,6 +2,9 @@
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_IBasicService;
+using WIDESEA_ITaskInfoService;
+using WIDESEA_Model.Models;
+using WIDESEAWCS_DTO.WCSInfo;
namespace WIDESEA_WMSServer.Controllers
{
@@ -10,14 +13,52 @@
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)
{
return _locationInfoService.GetPosition(position);
}
+ /// <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.StackerCraneRequestInbound(lineDTO);
+ }
+ ///AGV鐢宠鍑哄簱鍦板潃
}
}
--
Gitblit v1.9.3