From 843cc2ea1b104ecdf9da61318a4136a5d4096411 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期五, 24 四月 2026 11:07:21 +0800
Subject: [PATCH] 集成Quartz定时任务,支持NG出库自动化及WMS/WCS接口扩展
---
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs | 49 +++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 47 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 fd839d3..d9b1457 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>
@@ -244,4 +252,41 @@
{
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);
+ }
+ [HttpPost, AllowAnonymous, Route("GetGWRoadWayAsync")]
+ public async Task<string> GetGWRoadWayAsync(List<string> process)
+ {
+ return await Service.GetGWRoadWayAsync(process);
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3