From ce1292c9cf37195b6abd2699dfc5d6cb3e143c9b Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期日, 12 四月 2026 23:38:19 +0800
Subject: [PATCH] feat(MES): 添加MES接口相关实体和DTO JS扩展文件至JSX格式并更新配置

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseRepository/UnitOfWorks/IUnitOfWorkManage.cs |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseRepository/UnitOfWorks/IUnitOfWorkManage.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseRepository/UnitOfWorks/IUnitOfWorkManage.cs
index 5d0ade2..b38290a 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseRepository/UnitOfWorks/IUnitOfWorkManage.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseRepository/UnitOfWorks/IUnitOfWorkManage.cs
@@ -1,10 +1,5 @@
 锘縰sing SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
 using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
 
 namespace WIDESEAWCS_Core.BaseRepository
 {
@@ -15,6 +10,7 @@
         /// </summary>
         /// <returns>SqlSugarClient鏁版嵁搴撳鎴风瀵硅薄</returns>
         SqlSugarClient GetDbClient();
+
         int TranCount { get; }
 
         /// <summary>
@@ -27,28 +23,40 @@
         /// 寮�濮嬩竴涓簨鍔�
         /// </summary>
         void BeginTran();
+
         /// <summary>
         /// 寮�濮嬩竴涓簨鍔�
         /// </summary>
         /// <param name="method">瑙﹀彂浜嬪姟鐨勬柟娉曚俊鎭�</param>
         void BeginTran(MethodInfo method);
+
+        /// <summary>
+        /// 寮�濮嬩竴涓簨鍔★紝骞舵墽琛屾彁渚涚殑鍑芥暟
+        /// </summary>
+        /// <param name="func">濮旀墭鏂规硶</param>
+        /// <returns></returns>
+        WebResponseContent BeginTran(Func<WebResponseContent> func);
+
         /// <summary>
         /// 鎻愪氦褰撳墠浜嬪姟
         /// </summary>
         void CommitTran();
+
         /// <summary>
         /// 鎻愪氦浜嬪姟
         /// </summary>
         /// <param name="method">瑙﹀彂鎻愪氦浜嬪姟鐨勬柟娉曚俊鎭�</param>
         void CommitTran(MethodInfo method);
+
         /// <summary>
         /// 鍥炴粴褰撳墠浜嬪姟
         /// </summary>
         void RollbackTran();
+
         /// <summary>
         /// 鍥炴粴褰撳墠浜嬪姟
         /// </summary>
         /// <param name="method">瑙﹀彂鍥炴粴鐨勬柟娉曚俊鎭�</param>
         void RollbackTran(MethodInfo method);
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3