From 5af11cc200dd5ebe474b9c0475883b0e6d1e3759 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期三, 11 三月 2026 10:00:49 +0800
Subject: [PATCH] 重构整个项目:改进代码质量和架构
---
Code/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs
index c22ec14..9b680e7 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs
@@ -1,12 +1,7 @@
锘縰sing Microsoft.Data.SqlClient;
using SqlSugar;
-using System;
-using System.Collections.Generic;
using System.Data;
-using System.Linq;
using System.Linq.Expressions;
-using System.Text;
-using System.Threading.Tasks;
using WIDESEA_Core.Enums;
namespace WIDESEA_Core.BaseRepository
@@ -17,6 +12,7 @@
/// SqlsugarClient瀹炰綋
/// </summary>
ISqlSugarClient Db { get; }
+
/// <summary>
/// 閫氳繃涓婚敭鏌ヨ鏁版嵁
/// </summary>
@@ -373,7 +369,6 @@
Expression<Func<T2, bool>> whereExpressionT2,
Expression<Func<TResult, bool>> whereExpression);
-
Task<List<TResult>> QueryTabsAsync<T, T2, TResult>(
Expression<Func<T, T2, object[]>> joinExpression,
Expression<Func<T, T2, TResult>> selectExpression,
@@ -428,5 +423,25 @@
// Expression<Func<T, T2, T3, TResult>> selectExpression,
// Expression<Func<T, T2, T3, bool>> whereLambda = null) where T : class, new();
//Task<PageModel<TEntity>> QueryPage(PaginationModel pagination);
+
+ /// <summary>
+ /// 鑾峰彇浠诲姟缂栧彿
+ /// </summary>
+ /// <returns></returns>
+ Task<int> GetTaskNo();
+
+ /// <summary>
+ /// 瀵艰埅鏌ヨ鎵�鏈夋暟鎹�
+ /// </summary>
+ /// <param name="whereExpression"></param>
+ /// <returns></returns>
+ Task<List<TEntity>> QueryDataNavAsync(Expression<Func<TEntity, bool>> whereExpression);
+
+ /// <summary>
+ /// 瀵艰埅鏌ヨ鍗曟潯鏁版嵁
+ /// </summary>
+ /// <param name="whereExpression"></param>
+ /// <returns></returns>
+ Task<TEntity> QueryDataNavFirstAsync(Expression<Func<TEntity, bool>> whereExpression);
}
}
\ No newline at end of file
--
Gitblit v1.9.3