From eb65436c2312821e3e513ab9ada41dd486d6d7cf Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期二, 09 九月 2025 15:35:41 +0800
Subject: [PATCH] 同步为祈禧的代码

---
 WebApi/Gs.Warehouse/Services/MesRohInManager.cs |   35 ++++++++++++++++++++++++-----------
 1 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/WebApi/Gs.Warehouse/Services/MesRohInManager.cs b/WebApi/Gs.Warehouse/Services/MesRohInManager.cs
index 629dd77..ed455e7 100644
--- a/WebApi/Gs.Warehouse/Services/MesRohInManager.cs
+++ b/WebApi/Gs.Warehouse/Services/MesRohInManager.cs
@@ -14,17 +14,25 @@
 ///     閲囪喘涓昏〃锛屾暟鎹粠erp鏉�
 /// </summary>
 [ApiGroup(ApiGroupNames.PerMission)]
-public class MesRohInManager :IRomteService
+public class MesRohInManager : IRomteService
 {
+
+    /// <summary>
+    /// HTTP涓婁笅鏂�
+    /// </summary>
     private readonly IHttpContextAccessor _http;
+
+    /// <summary>
+    /// 鐢ㄦ埛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>
@@ -35,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),
@@ -66,8 +74,9 @@
             if (dset != null && dset.Tables.Count > 0 &&
                 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
                     : intTotal / everyPageSize;
@@ -88,7 +97,7 @@
 
 
     /// <summary>
-    ///     璇诲彇
+    ///     璇诲彇鏄庣粏
     /// </summary>
     /// <param name="guid"></param>
     /// <returns></returns>
@@ -114,11 +123,13 @@
             if (dset != null && dset.Tables.Count > 0 &&
                 dset.Tables[0].Rows.Count > 0)
             {
+                //涓讳綋淇℃伅
                 var dr = dset.Tables[0].Rows[0];
                 m = dr.RowToDynamic();
+                //琛�1
                 var _tb = dset.Tables[1].TableToDynamicList();
                 m.list = _tb;
-
+                //琛�2
                 var _tb2 = dset.Tables[2].TableToDynamicList();
                 m.list2 = _tb2;
             }
@@ -133,4 +144,6 @@
                 "璇诲彇鎴愬姛锛�");
         return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Default, "璇诲彇澶辫触锛�");
     }
+
+
 }
\ No newline at end of file

--
Gitblit v1.9.3