肖洋
2024-12-05 b5fe109b08ce6e1e78696bb7cf41f415dc6a4587
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/RequestInTaskAsync.cs
@@ -172,15 +172,15 @@
    {
        WebResponseContent content = new WebResponseContent();
        // TODO 创建任务送至NG排出口
        var stationManagers = _stationManagerRepository.QueryData(x => x.stationType == 1 && x.stationChildCode == input.Position && x.stationArea == area.AreaCode).ToList();
        if (stationManagers.Count <= 0)
        var stationManagers = _stationManagerRepository.QueryData(x => x.stationType == 1 && x.stationChildCode == input.Position && x.stationArea == area.AreaCode).FirstOrDefault();
        if (stationManagers == null)
        {
            throw new Exception("未找到NG入库站台配置");
        }
        List<string> NGStation = stationManagers.Select(x => x.stationNGLocation).ToList();
        List<string> NGStation = stationManagers.Roadway.Split(',').ToList();
        if (NGStation.Count <= 0)
        {
            NGStation = stationManagers.Select(x => x.stationNGChildCode).ToList();
            NGStation = stationManagers.stationNGChildCode.Split(',').ToList();
        }
        content = await CreateNewTask(input, NGStation, 2);
        return content.Error("存在异常电芯");