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 | 18 ++++++++++++++++--
1 files changed, 16 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 a510ec9..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>
@@ -270,4 +278,10 @@
{
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