wanshenmean
8 天以前 eb399b544b4055c1b58a1746f8c453ba41e4010b
Code/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs
@@ -1,12 +1,7 @@
using 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);
    }
}