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; }