From 7e514494e595531a0517d6266823bc7f6d673831 Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期四, 14 三月 2024 13:41:29 +0800 Subject: [PATCH] 呼叫小车 --- 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