From a89c018c3afa43a529f9eb54725bc92ed2b996e8 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期二, 24 九月 2024 15:04:45 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs"
index ef4b831..62e3463 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs"
@@ -1,34 +1,41 @@
-锘縰sing Microsoft.AspNetCore.Http;
+锘縰sing Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
 using WIDESEA_Core;
 using WIDESEA_Core.BaseController;
 using WIDESEA_DTO.Inbound;
 using WIDESEA_IInboundService;
+using WIDESEA_IOutboundService;
 using WIDESEA_ITaskInfoService;
 using WIDESEA_Model.Models;
 
 namespace WIDESEA_WMSServer.Controllers
 {
     [Route("api/PDA")]
-    [ApiController]
-    public class PDAController : ApiBaseController<ITaskService, Dt_Task>
+    [Authorize, ApiController]
+    public class PDAController : Controller
     {
         private readonly IInboundService _inboundService;
-        public PDAController(ITaskService service, IInboundService inboundService) : base(service)
+        private readonly IOutboundService _outboundService;
+        private readonly ITaskService _taskService;
+
+        public PDAController(ITaskService taskService, IInboundService inboundService,IOutboundService outboundService)
         {
             _inboundService = inboundService;
+            _outboundService = outboundService;
+            _taskService = taskService;
         }
 
         [HttpPost, Route("CallMateriel")]
         public WebResponseContent CallMateriel(string endPoint)
         {
-            return Service.CallMateriel(endPoint);
+            return _taskService.CallMateriel(endPoint);
         }
 
         [HttpPost, Route("MaterielCarry")]
         public WebResponseContent MaterielCarry(string startPoint)
         {
-            return Service.MaterielCarry(startPoint);
+            return _taskService.MaterielCarry(startPoint);
         }
 
         [HttpPost, Route("MaterielGroup")]

--
Gitblit v1.9.3