From fe41831b0e9057a16aef1e82048105aee671bbda Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期六, 19 十月 2024 19:08:06 +0800 Subject: [PATCH] Merge branch 'master' into Liudl --- Wms/WMS.BLL/LogServer/TaskServer.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/Wms/WMS.BLL/LogServer/TaskServer.cs b/Wms/WMS.BLL/LogServer/TaskServer.cs index c49a452..7f5958b 100644 --- a/Wms/WMS.BLL/LogServer/TaskServer.cs +++ b/Wms/WMS.BLL/LogServer/TaskServer.cs @@ -136,5 +136,23 @@ throw new Exception(e.Message); } } + + public string GetTaskType(string taskNo) + { + try + { + var task = Db.Queryable<LogTask>().First(m => m.TaskNo == taskNo); + if (task == null) + { + throw new Exception($"鏈煡璇㈠埌{taskNo}浠诲姟鍙风殑浠诲姟淇℃伅"); + } + + return task.Type; + } + catch (Exception e) + { + throw new Exception(e.Message); + } + } } } -- Gitblit v1.8.0