duyongjia
2024-12-27 b879053cc8414be35ea60e4c1667039053e3f6e5
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -95,28 +95,31 @@
                    }
                    Dt_Task task = _mapper.Map<Dt_Task>(item);
                    task.Creater = "WMS";
                    //绌鸿溅鍏ュ簱
                    if (item.TaskType == (int)TaskInboundTypeEnum.InInventory)
                    {
                        task.TaskType= (int)TaskInboundTypeEnum.InInventory;
                        task.TaskState= (int)TaskInStatusEnum.InNew;
                    }
                    else if(item.TaskType==(int)TaskOutboundTypeEnum.OutInventory)
                    if(item.TaskType==(int)TaskOutboundTypeEnum.OutInventory)
                    {
                        task.TaskType=(int)TaskOutboundTypeEnum.OutInventory;
                        task.TaskState=(int)TaskOutStatusEnum.OutNew;
                  
                    }
                    else if (item.TaskType == (int)TaskOutboundTypeEnum.Outbound)
                    {
                        task.TaskType = (int)TaskOutboundTypeEnum.Outbound;
                        task.TaskState = (int)TaskOutStatusEnum.OutNew;
                    }
                    else if (item.TaskType == (int)TaskInboundTypeEnum.Inbound)
                    {
                        task.TaskType = (int)TaskInboundTypeEnum.Inbound;
                        task.TaskState = (int)TaskInStatusEnum.InNew;
                    }
                    else if (item.TaskType == (int)TaskOutboundTypeEnum.Outbound)
                    else if (item.TaskType == (int)TaskInboundTypeEnum.InInventory)
                    {
                        task.TaskType = (int)TaskOutboundTypeEnum.Outbound;
                        task.TaskState = (int)TaskOutStatusEnum.OutNew;
                        task.TaskType = (int)TaskInboundTypeEnum.InInventory;
                        task.TaskState = (int)TaskInStatusEnum.InNew;
                    }
                    else if (item.TaskType == (int)TaskInboundTypeEnum.InPick)
                    {
                        task.TaskType = (int)TaskInboundTypeEnum.InPick;
                        task.TaskState = (int)TaskInStatusEnum.InNew;
                    }
                    tasks.Add(task);
                }