1
dengjunjie
2025-03-11 c455612b03e6ecac994884dde5b5f4bc4909c181
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_ConveyorLine.cs
@@ -27,21 +27,6 @@
                string ConveyorLineID = AppSettings.Configuration[nameof(ConveyorLineID)];
                if (!ConveyorLineID.Split(",").Contains(lineDTO.stationCode)) throw new Exception($"未找到输送线编号[{lineDTO.stationCode}]的信息");
                content = TransmissionlineRequest(lineDTO);
                //switch (lineDTO.stationCode)
                //{
                //    case "102":
                //        content = TransmissionlineRequest(lineDTO);
                //        break;
                //    case "Z1":
                //    case "Z2":
                //    case "Z3":
                //    case "X1":
                //    case "X2":
                //    case "X3":
                //        content = ProductionlineRequest(lineDTO);
                //        break;
                //    default: throw new Exception("未定义站台:" + lineDTO.stationCode);
                //}
            }
            catch (Exception ex)
            {
@@ -112,8 +97,11 @@
                //{
                //    throw new Exception($"当前入库站台[{lineDTO.stationCode}]已有一条任务");
                //}
                var task = BaseDal.QueryFirst(x => x.PalletCode == lineDTO.Barcode && x.TaskType == TaskTypeEnum.Inbound.ObjToInt());
                var task = BaseDal.QueryFirst(x => x.PalletCode == lineDTO.Barcode);
                if (task == null) throw new Exception($"未找到托盘号[{lineDTO.Barcode}]的入库任务");
                if (task.TaskType == TaskTypeEnum.PalletInbound.ObjToInt()) return content;
                if (task.TaskType != TaskTypeEnum.Inbound.ObjToInt()) throw new Exception($"未找到托盘号[{lineDTO.Barcode}]的入库任务");
                //if (task.TaskState != (int)InTaskStatusEnum.AGV_InFinish) throw new Exception($"托盘号[{lineDTO.Barcode}]的入库任务状态不匹配");
                Dt_StockInfo stockInfo = _stockService.StockInfoService.Repository.GetStockInfo(lineDTO.Barcode);