From 990afb24199ef1f7a4648728ac28ed74394e459c Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期二, 31 三月 2026 12:27:50 +0800
Subject: [PATCH] 任务服务优化与接口扩展,日志与配置调整

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs |   74 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 72 insertions(+), 2 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs
index ef8ccf0..769e109 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs
@@ -1,4 +1,8 @@
-锘縰sing WIDESEA_DTO;
+锘縰sing WIDESEA_Core.BaseRepository;
+using WIDESEA_DTO;
+using WIDESEA_IStorageBasicRepository;
+using WIDESEA_IStorageTaskRepository;
+using WIDESEAWCS_QuartzJob.Models;
 
 namespace WIDESEA_WMSServer.Controllers;
 
@@ -12,14 +16,18 @@
     private readonly IHttpContextAccessor _httpContextAccessor;
     private readonly IDt_TaskService _taskService;
     private readonly ILocationInfoService _locationService;
+    private readonly ILocationInfoRepository _locationRepository;
+    private readonly IDt_TaskRepository BaseDal;
 
     public TaskController(IDt_TaskService taskService,
         IHttpContextAccessor httpContextAccessor,
-        ILocationInfoService locationService) : base(taskService)
+        ILocationInfoService locationService, ILocationInfoRepository locationInfoRepository,IDt_TaskRepository repository) : base(taskService)
     {
         _httpContextAccessor = httpContextAccessor;
         _taskService = taskService;
         _locationService = locationService;
+        _locationRepository = locationInfoRepository;
+        BaseDal = repository;
     }
 
     /// <summary>
@@ -214,4 +222,66 @@
     {
         return await Service.SetEmptyOutbyInToOutOneAsync(input);
     }
+    [HttpPost, AllowAnonymous, Route("GetTaskInfo")]
+    public WebResponseContent GetTaskInfo()
+    {
+        return Service.GetTaskInfo();
+    }
+    [HttpPost, AllowAnonymous, Route("GetStockInfo")]
+    public WebResponseContent GetStockInfo()
+    {
+        return Service.GetStockInfo();
+    }
+
+    /// <summary>
+    /// 鑾峰彇搴撳瓨淇℃伅
+    /// </summary>
+    /// <returns></returns>
+    [HttpPost, AllowAnonymous, Route("GetStockQuantity")]
+    public WebResponseContent GetStockQuantity()
+    {
+        return Service.GetStockQuantity();
+    }
+    [HttpPost, AllowAnonymous, Route("Getproductionvolume")]
+    public WebResponseContent Getproductionvolume()
+    {
+        return Service.Getproductionvolume();
+    }
+    [HttpPost, AllowAnonymous, Route("Getoutput")]
+    public WebResponseContent Getoutput()
+    {
+        return Service.Getoutput();
+    }
+
+    [HttpPost, AllowAnonymous, Route("GetTimeoutgetPageData")]
+    public WebResponseContent GetTimeout()
+    {
+        return Service.GetTimeout();
+    }
+
+
+    /// <summary>
+    /// 浜ч噺缁熻
+    /// </summary>
+    /// <returns></returns>
+    [HttpPost,AllowAnonymous,Route("GetproductionstatisticsgetPageData")]
+    public WebResponseContent Getproductionstatistics()
+    {
+        return Service.Getproductionstatistics();
+    }
+    /// <summary>
+    /// 鑾峰彇涓嶆槸绌洪棽浠ュ強鏈夎揣鐨勫叏閮ㄨ揣浣�
+    /// </summary>
+    /// <returns></returns>
+    [HttpPost, AllowAnonymous, Route("LocationStatusgetPageData")]
+    public WebResponseContent LocationStatus()
+    {
+        return Service.GetLocationStatus();
+    }
+
+    [HttpPost, AllowAnonymous, Route("GetRoadWayAsync")]
+    public async Task<string> GetRoadWayAsync(List<string> process)
+    {
+        return await Service.GetRoadWayAsync(process);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3