From f2b71fe1d3c2b7651d525a5b5bbe66fad602ea06 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期二, 09 九月 2025 18:46:28 +0800
Subject: [PATCH] 代码清理
---
WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs b/WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs
index 73acad5..6b7423e 100644
--- a/WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs
+++ b/WebApi/Gs.QiTaRk/MesItemQtrkDjManager.cs
@@ -8,20 +8,22 @@
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>
@@ -77,7 +79,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,
@@ -142,7 +144,7 @@
{
string _guid = mode.guid;
string _inFieldValue = mode.inFieldValue;
- string _proName = "prc_QTRKDJ_submit";
+ var _proName = "prc_QTRKDJ_submit";
if (int.Parse(_inFieldValue) * 1 <= 0)
_proName = "prc_QTRKDJ_submit";
dynamic m = new ExpandoObject();
@@ -158,7 +160,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),
@@ -188,6 +190,7 @@
}
}
}
+
return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, "鎿嶄綔鎴愬姛锛�");
}
}
\ No newline at end of file
--
Gitblit v1.9.3