From 5707781039b9d902ce1d2d6727fba65bbab14574 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期六, 13 九月 2025 17:02:06 +0800 Subject: [PATCH] 异常单回滚 --- WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs b/WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs index 6b7423e..73acad5 100644 --- a/WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs +++ b/WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs @@ -8,22 +8,20 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using static Gs.Toolbox.UtilityHelper; - namespace Gs.QiTaRk; [ApiGroup(ApiGroupNames.PerMission)] + public class MesItemQtrkDjManager : IRomteService { private readonly IHttpContextAccessor _http; private readonly string _userCode, _userGuid, _orgFids; - public MesItemQtrkDjManager(IHttpContextAccessor httpContextAccessor) { _http = httpContextAccessor; (_userCode, _userGuid, _orgFids) = GetUserGuidAndOrgGuid(_http); } - /// <summary> /// 璇诲彇鍒楄〃锛屾敮鎸佸垎椤� /// </summary> @@ -79,7 +77,7 @@ { LogHelper.Debug(ToString(), ex.Message); return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist, - ReturnCode.Exception, ex.Message); + ReturnCode.Exception, ex.Message); } return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist, @@ -144,7 +142,7 @@ { string _guid = mode.guid; string _inFieldValue = mode.inFieldValue; - var _proName = "prc_QTRKDJ_submit"; + string _proName = "prc_QTRKDJ_submit"; if (int.Parse(_inFieldValue) * 1 <= 0) _proName = "prc_QTRKDJ_submit"; dynamic m = new ExpandoObject(); @@ -160,7 +158,7 @@ cmd.CommandType = CommandType.StoredProcedure; SqlParameter[] parameters = { - new("@outMsg", SqlDbType.NVarChar, 2500), + new("@outMsg", SqlDbType.NVarChar, 2500), new("@outSum", SqlDbType.Int), new("@inEdtUserGuid", _userGuid), new("@inOrderGuid", _guid), @@ -190,7 +188,6 @@ } } } - return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, "鎿嶄綔鎴愬姛锛�"); } } \ No newline at end of file -- Gitblit v1.9.3