zhaowc
2025-01-17 adf52922fbe13bc6c164b5dafeb0e445ca2f214f
Wms/WMS.BLL/LogServer/TaskServer.cs
@@ -119,7 +119,29 @@
            }
        }
        public string GetTaskOrderType(string taskNo)
        public string GetTaskOrderType(string taskNo,string tasktype)
        {
            try
            {
                if (tasktype == "1")
                {
                     taskNo = taskNo.Substring(0, taskNo.Length - 3);
                }
                var task = Db.Queryable<LogTask>().First(m => m.TaskNo == taskNo);
                if (task == null)
                {
                    throw new Exception($"未查询到{taskNo}任务号的任务信息");
                }
                return task.OrderType;
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }
        public string GetTaskType(string taskNo)
        {
            try
            {
@@ -129,7 +151,7 @@
                    throw new Exception($"未查询到{taskNo}任务号的任务信息");
                }
                return task.OrderType;
                return task.Type;
            }
            catch (Exception e)
            {