From 0b2869539598059704e1d208e2bcb18603b0fe0f Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 01 五月 2026 00:00:30 +0800
Subject: [PATCH] feat(出库时效): 添加出库时效配置功能
---
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/RobotTaskController.cs | 59 ++++++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 42 insertions(+), 17 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/RobotTaskController.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/RobotTaskController.cs
index c35c454..e43311b 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/RobotTaskController.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/RobotTaskController.cs
@@ -1,17 +1,42 @@
-锘縰sing Microsoft.AspNetCore.Mvc;
-using WIDESEAWCS_Core.BaseController;
-using WIDESEAWCS_ISystemServices;
-using WIDESEAWCS_ITaskInfoService;
-using WIDESEAWCS_Model.Models;
-
-namespace WIDESEAWCS_Server.Controllers.Task
-{
- [Route("api/robotTask")]
- [ApiController]
- public class RobotTaskController : ApiBaseController<IRobotTaskService, Dt_RobotTask>
- {
- public RobotTaskController(IRobotTaskService service) : base(service)
- {
- }
- }
-}
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Mvc;
+using WIDESEAWCS_Core;
+using WIDESEAWCS_Core.BaseController;
+using WIDESEAWCS_DTO.TaskInfo;
+using WIDESEAWCS_ITaskInfoService;
+using WIDESEAWCS_Model.Models;
+
+namespace WIDESEAWCS_Server.Controllers.Task
+{
+ [Route("api/RobotTask")]
+ [ApiController]
+ public class RobotTaskController : ApiBaseController<IRobotTaskService, Dt_RobotTask>
+ {
+ public RobotTaskController(IRobotTaskService service) : base(service)
+ {
+ }
+
+ [HttpGet, HttpPost, Route("DeleteRobotTask"), AllowAnonymous]
+ public WebResponseContent DeleteRobotTask(int id)
+ {
+ if (Service.DeleteRobotTask(id))
+ {
+ return WebResponseContent.Instance.OK();
+ }
+ return WebResponseContent.Instance.Error();
+ }
+
+ [HttpGet, HttpPost, Route("GetRobotTaskTotalNum"), AllowAnonymous]
+ public int GetRobotTaskTotalNum(int taskType, string? palletCode)
+ {
+ return Service.GetRobotTaskTotalNum(taskType, palletCode);
+ }
+
+ // 鎵嬪姩鏈烘鎵嬩换鍔�
+ [HttpGet, HttpPost, Route("CreateRobotTaskManually"), AllowAnonymous]
+ public WebResponseContent CreateRobotTaskManually([FromBody] ManualRobotTaskDto request)
+ {
+ return Service.CreateRobotTaskManually(request);
+ }
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.3