From 5707781039b9d902ce1d2d6727fba65bbab14574 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期六, 13 九月 2025 17:02:06 +0800 Subject: [PATCH] 异常单回滚 --- WebApi/Gs.Ww/ProductionOrderManager.cs | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/WebApi/Gs.Ww/ProductionOrderManager.cs b/WebApi/Gs.Ww/ProductionOrderManager.cs index e75855d..d445cd6 100644 --- a/WebApi/Gs.Ww/ProductionOrderManager.cs +++ b/WebApi/Gs.Ww/ProductionOrderManager.cs @@ -25,7 +25,6 @@ GetUserGuidAndOrgGuid(_http); } - /// <summary> /// 璇诲彇鍒楄〃锛屾敮鎸佸垎椤� /// </summary> @@ -183,9 +182,9 @@ { LogHelper.Debug(ToString(), "prc_ww_rwd_dj_submit error锛�" + ex.Message); - return ReturnDto<dynamic>.QuickReturn(m, - ReturnCode.Default, - ex.Message); + m.outMsg = ex.Message; + m.outSum = -1; + } finally { @@ -193,8 +192,12 @@ } } } + if (m.outSum <= 0) + return ReturnDto<dynamic>.QuickReturn(m, + ReturnCode.Default, + "鎿嶄綔澶辫触锛�"); return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, - "鎿嶄綔鎴愬姛锛�"); + "鎿嶄綔鎴愬姛锛�"); } } } \ No newline at end of file -- Gitblit v1.9.3