You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
using System.Linq.Expressions;
|
|
using Entity.DbModel.Station;
|
|
using Entity.Dto.Req;
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
using SqlSugar;
|
|
|
|
namespace Repository.Station;
|
|
|
|
[Scope("SingleInstance")]
|
|
public class EquipNetInfoRepository : BaseRepository<EquipNetInfo>
|
|
{
|
|
public EquipNetInfoRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
|
{
|
|
}
|
|
|
|
public async Task<List<EquipNetInfo>> EquipNetInfoQueryPageAsync(
|
|
bool isWhere1, Expression<Func<EquipNetInfo, bool>> expression1,
|
|
bool isWhere2, Expression<Func<EquipNetInfo, bool>> expression2,
|
|
bool isWhere3, Expression<Func<EquipNetInfo, bool>> expression3,
|
|
int pageNumber, int pageSize, RefAsync<int> totalNumber,
|
|
PageEquipNetInfoReq input, bool blUseNoLock = false)
|
|
{
|
|
var page = await DbBaseClient
|
|
.Queryable<EquipNetInfo>()
|
|
.WhereIF(isWhere1, expression1)
|
|
.WhereIF(isWhere2, expression2)
|
|
.WhereIF(isWhere3, expression3)
|
|
.OrderBuilder(input)
|
|
.WithNoLockOrNot(blUseNoLock)
|
|
.ToPageListAsync(pageNumber, pageSize, totalNumber);
|
|
return page;
|
|
}
|
|
} |