wanshenmean
2025-03-22 fac71280bbbda8d7a3b068d1cfaa49ac540eb7ae
CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_After/CommonConveyorLine_AfterJob.cs
@@ -185,7 +185,7 @@
            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 < need.cacheNum)   //不存在空框出库任务 则请求WMS出空库
            if (taskNew.Count + 2 < cache)   //不存在空框出库任务 则请求WMS出空库
            {
                //ConsoleHelper.WriteWarningLine("请求空托盘");
                if (_taskService.RequestTask(command.ConveyorLineBarcode, stationInfo).Result.Status)