刘磊
2025-06-11 97a7e1803d7f230e0ef661c152c4f3631b6fa5a5
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/Dt_TaskService.cs
@@ -34,16 +34,6 @@
                    return content.OK(data: taskDTO);
                }
            }
            //查询创建的车轮信息
            //var inWheelsInfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_CurrentStatue == "0");
            //查询创建的制动盘信息
            //var inBrakeInfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_CurrentStatue == "0");
            //if (inBrakeInfo == null) throw new Exception("当前无车轮或制动盘入库信息");
            //if (inWheelsInfo == null /*&& inBrakeInfo == null*/) throw new Exception("当前无车轮或制动盘入库信息");
            var newtask = new Dt_Task
            {
                CurrentAddress = input.Position,
@@ -57,7 +47,7 @@
                PalletCode = "",
                SourceAddress = input.Position,
                TaskState = (int)TaskInStatusEnum.InNew,
                TaskType = (int)TaskInboundTypeEnum.InWheels,  //inWheelsInfo == null ? (int)TaskInboundTypeEnum.InBrake :
                TaskType = (int)TaskInboundTypeEnum.Inbound,
                TaskNum = await BaseDal.GetTaskNo(),
                Creater = "Systeam"
            };