1
huangxiaoqiang
2025-03-21 e9b4a4107bdd7a7c737192827d4ee17e23c362f6
CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_After/CommonConveyorLine_AfterJob.cs
@@ -183,16 +183,15 @@
            if (stationInfo.stationType != 7) return;
            var taskNew = _taskRepository.QueryData(x => x.TargetAddress == stationInfo.stationChildCode && x.TaskType == (int)TaskOutboundTypeEnum.OutTray);
            var need = _needBarcodeRepository.QueryFirst(x => x.toArea == stationInfo.stationChildCode && x.productLine == stationInfo.productLine);
            var cache = command.Reserved5;
            if (taskNew.Count < cache)   //不存在空框出库任务 则请求WMS出空库
            if (taskNew.Count < need.cacheNum)   //不存在空框出库任务 则请求WMS出空库
            {
                ConsoleHelper.WriteWarningLine("请求空托盘");
                //ConsoleHelper.WriteWarningLine("请求空托盘");
                if (_taskService.RequestTask(command.ConveyorLineBarcode, stationInfo).Result.Status)
                {
                    Dt_Task task = _taskService.QueryTaskByPalletCode(command.ConveyorLineBarcode, stationInfo.Roadway);
                    if (task != null)
                    {
                    }
                    need.inLineNum += 1;
                    _needBarcodeRepository.UpdateData(need);
                }
            }
        }