wanshenmean
2025-03-22 af9c3ed5d036ad68faf7e18f566679b3da92d244
CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
@@ -612,30 +612,6 @@
        try
        {
            Dt_Task taskNews = new Dt_Task
            {
                CurrentAddress = input.Position,
                Grade = 1,
                Roadway = "CWSC1",
                TargetAddress = "CWSC1",
                Dispatchertime = DateTime.Now,
                MaterialNo = "",
                NextAddress = "CWSC1",
                OrderNo = null,
                PalletCode = input.PalletCode,
                SourceAddress = input.Position,
                TaskState = (int)TaskInStatusEnum.InNew,
                TaskType = (int)TaskInboundTypeEnum.InTray,
                TaskNum = await BaseDal.GetTaskNo(),
                Creater = "Systeam",
                ProductionLine = input.ProductionLine,
                //ProcessCode = processCode
            };
            var taskDTOs = CreateTaskDTO(taskNews);
            BaseDal.AddData(taskNews);
            return content.OK(data: taskDTOs);
            // 查询任务
            var task = await QueryTaskByPalletCode(input.PalletCode);
            if (task != null)