From 60994422d1ff27c24ed8bdf1076f50166ca638db Mon Sep 17 00:00:00 2001 From: 肖洋 <cathay_xy@163.com> Date: 星期二, 07 一月 2025 18:21:25 +0800 Subject: [PATCH] 修复和优化多个服务及配置 --- Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs | 27 ++++++++++++++++++++++----- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs index 0b3c520..a99a5d4 100644 --- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs +++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs @@ -9,6 +9,7 @@ using WIDESEAWCS_Model.Models; using WIDESEAWCS_QuartzJob; using WIDESEAWCS_Tasks.ConveyorLineJob; +using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database; namespace WIDESEAWCS_Tasks { @@ -60,7 +61,7 @@ case 9: case 11: case 12: - var task = _taskService.QueryExecutingConveyorLineTask(command.ConveyorLineTaskNum, childDeviceCode); + var task = _taskService.QueryExecutingTaskByBarcode(command.ConveyorLineBarcode, childDeviceCode); if (task != null) { ExecuteStationAction(stationManager, conveyorLine, command, childDeviceCode); @@ -71,9 +72,9 @@ case 10: ExecuteStationAction(stationManager, conveyorLine, command, childDeviceCode); break; - //case 16: - // ExecuteStationAction(stationManager, conveyorLine, command, childDeviceCode); - // break; + //case 16: + // ExecuteStationAction(stationManager, conveyorLine, command, childDeviceCode); + // break; } #region @@ -161,7 +162,9 @@ case 6: CreateAndSendEmptyTrayTask(conveyorLine, command, childDeviceCode); break; - + case 16: + AbNormalStationBZTask(conveyorLine, command, childDeviceCode); + break; case 1: //if (stationManager.stationArea.Contains("GW")) @@ -348,5 +351,19 @@ //Dt_Task task= _taskRepository.QueryFirst(x=>) //_taskRepository.QueryFirst() } + + /// <summary> + /// 鍖呰寮傚父鎺掑嚭鍙i�昏緫 + /// </summary> + /// <param name="conveyorLine"></param> + /// <param name="command"></param> + /// <param name="childDeviceCode"></param> + private void AbNormalStationBZTask(CommonConveyorLine_GW conveyorLine, ConveyorLineTaskCommand_After command, string childDeviceCode) + { + Dt_StationManager stationManager = _stationManagerRepository.QueryFirst(x => x.stationChildCode == childDeviceCode && x.stationPLC == conveyorLine.DeviceCode); + + + } + } } \ No newline at end of file -- Gitblit v1.9.3