From 5707781039b9d902ce1d2d6727fba65bbab14574 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期六, 13 九月 2025 17:02:06 +0800 Subject: [PATCH] 异常单回滚 --- WebApi/Gs.Warehouse/Services/MesRohInManager.cs | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/WebApi/Gs.Warehouse/Services/MesRohInManager.cs b/WebApi/Gs.Warehouse/Services/MesRohInManager.cs index ec38e1a..ed455e7 100644 --- a/WebApi/Gs.Warehouse/Services/MesRohInManager.cs +++ b/WebApi/Gs.Warehouse/Services/MesRohInManager.cs @@ -16,22 +16,23 @@ [ApiGroup(ApiGroupNames.PerMission)] public class MesRohInManager : IRomteService { + /// <summary> - /// HTTP涓婁笅鏂� + /// HTTP涓婁笅鏂� /// </summary> private readonly IHttpContextAccessor _http; /// <summary> - /// 鐢ㄦ埛code,鐢ㄦ埛guid,缁勭粐id鍒楄〃 + /// 鐢ㄦ埛code,鐢ㄦ埛guid,缁勭粐id鍒楄〃 /// </summary> + private readonly string _userCode, _userGuid, _orgFids; public MesRohInManager(IHttpContextAccessor httpContextAccessor) { //鍙橀噺闄勫�� _http = httpContextAccessor; - (_userCode, _userGuid, _orgFids) = - UtilityHelper.GetUserGuidAndOrgGuid(_http); + (_userCode, _userGuid, _orgFids) =UtilityHelper.GetUserGuidAndOrgGuid(_http); } /// <summary> @@ -42,10 +43,10 @@ [RequestMethod(RequestMethods.POST)] public ReturnDto<PageList<dynamic>> GetListPage([FromBody] dynamic model) { - int currentPage = model.currentPage; //褰撳墠椤� - int everyPageSize = model.everyPageSize; //姣忛〉澶у皬 - string sortName = model.sortName; //鎺掑簭 - string keyWhere = model.keyWhere; //鏌ヨ鏉′欢 + int currentPage = model.currentPage;//褰撳墠椤� + int everyPageSize = model.everyPageSize;//姣忛〉澶у皬 + string sortName = model.sortName;//鎺掑簭 + string keyWhere = model.keyWhere;//鏌ヨ鏉′欢 SqlParameter[] parameters = { new("@inCurrentPage", currentPage), @@ -74,8 +75,7 @@ dset.Tables[0].Rows.Count > 0) //鏈夋暟鎹� { //鎬昏褰曟暟 - var intTotal = - int.Parse(dset.Tables[1].Rows[0]["intTotal"].ToString()); + var intTotal =int.Parse(dset.Tables[1].Rows[0]["intTotal"].ToString()); //璁$畻鍏辨湁鍑犻〉 var pages = intTotal % everyPageSize != 0 ? intTotal / everyPageSize + 1 @@ -91,7 +91,6 @@ { LogHelper.Debug(ToString(), ex.Message); } - return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist, ReturnCode.Success, "璇诲彇鎴愬姛"); } @@ -145,4 +144,6 @@ "璇诲彇鎴愬姛锛�"); return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Default, "璇诲彇澶辫触锛�"); } + + } \ No newline at end of file -- Gitblit v1.9.3