wankeda
3 天以前 2a32dfbf5fe3b484d1ef6849cd8e322faa70ce14
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -105,8 +105,8 @@
                    if (taskTypeGroup == TaskTypeGroup.InboundGroup)
                    {
                        task.Creater = "WMS";
                        task.TaskState = (int)TaskInStatusEnum.InNew;
                        stationManger = stationMangers.FirstOrDefault(x => x.StationCode == item.NextAddress || x.StationDeviceCode == item.SourceAddress);
                        task.TaskState = (int)TaskStatusEnum.New.ObjToInt();
                        stationManger = stationMangers.FirstOrDefault(x => x.StationCode == item.CurrentAddress || x.StationDeviceCode == item.SourceAddress);
                        task.DeviceCode = stationManger.StationDeviceCode;
                    }
                    else
@@ -137,12 +137,16 @@
            }
            return content;
        }
        /// <summary>
        /// 浠诲姟瀹屾垚鍙嶉WMS
        /// </summary>
        /// <param name="taskNum"></param>
        /// <returns></returns>
        public WebResponseContent TaskCompleted(int taskNum)
        {
            try
            {
                string address = AppSettings.Get("WMSApiAddress");
                string address = AppSettings.Get("FeedBackWMSTaskCompleted");
                if (string.IsNullOrEmpty(address))
                {
                    return WebResponseContent.Instance.Error($"鏈壘鍒癢MSApi鍦板潃");