From c5c3e4e538a11f2a6391e6b2613375b1f92eb20a Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期三, 15 四月 2026 14:39:18 +0800
Subject: [PATCH] feat: 添加Quartz日志助手类并重构任务服务日志记录

---
 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