From 97ccf2c082fbde28d8f70299dcde8526d695d49b Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Mon, 17 Jun 2024 14:38:38 +0800 Subject: [PATCH] bug --- ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index 4c1fd584..f3c4c643 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -1432,9 +1432,9 @@ namespace Tnb.ProductionMgr } } }); - - //else - // throw new AppFriendlyException("只有待下发状态的任务才可下发", 500); + + if (!result.IsSuccess) + throw Oops.Bah(result.ErrorMessage); return result.IsSuccess ? "保存成功" : result.ErrorMessage; }