1
huangxiaoqiang
2025-03-20 5609f7c28372e769515d5198fd4b99994e96a4b0
CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/Partial/TaskService.cs
@@ -214,7 +214,6 @@
            WebResponseContent content = new WebResponseContent();
            try
            {
                StaticVariable.isLineRun = false;
                // 检查当前托盘是否存在任务
                if (await HasTask(palletCode))
@@ -228,23 +227,20 @@
                    return content.Error($"【{stationManager.stationChildCode}】已存在直接出库任务任务");
                }
                if (StaticVariable.isStackerRun)
                if (stationManager.stationType == 7)
                {
                    if (stationManager.stationType == 7)
                    var result = await HandleStationType7(palletCode, stationManager);
                    if (result != null)
                    {
                        var result = await HandleStationType7(palletCode, stationManager);
                        if (result != null)
                        {
                            return result;
                        }
                        return result;
                    }
                    else if (stationManager.stationType == 6)
                }
                else if (stationManager.stationType == 6)
                {
                    var result = await HandleStationType6(palletCode, stationManager);
                    if (result != null)
                    {
                        var result = await HandleStationType6(palletCode, stationManager);
                        if (result != null)
                        {
                            return result;
                        }
                        return result;
                    }
                }
@@ -264,10 +260,6 @@
            catch (Exception ex)
            {
                return WebResponseContent.Instance.Error(ex.Message);
            }
            finally
            {
                StaticVariable.isLineRun = true;
            }
        }
@@ -406,9 +398,9 @@
                var task = JsonConvert.DeserializeObject<WMSTaskDTO>(content.Data.ToString());
                ConsoleHelper.WriteSuccessLine(content.Data.ToString());
                content = ReceiveWMSTask(new List<WMSTaskDTO> { task });
                return content;
            }
            catch (Exception ex)