|
@@ -84,11 +84,11 @@ namespace GxPress.Repository.Implement.SpecialLabel
|
|
|
/// </summary>
|
|
|
/// <param name="typeValue"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<IEnumerable<Entity.SystemLabel.SpecialLabel>> GetAllAsync(int typeValue)
|
|
|
+ public async Task<IEnumerable<Entity.SystemLabel.SpecialLabel>> GetAllAsync(int typeValue,int pageSize=10)
|
|
|
{
|
|
|
var query = Q.NewQuery();
|
|
|
query.Where(nameof(Entity.SystemLabel.SpecialLabel.TypeValue), typeValue);
|
|
|
- query.OrderByDesc(nameof(Entity.SystemLabel.SpecialLabel.Sort)).Take(8);
|
|
|
+ query.OrderByDesc(nameof(Entity.SystemLabel.SpecialLabel.Sort)).Take(pageSize);
|
|
|
return await _repository.GetAllAsync(query);
|
|
|
}
|
|
|
/// <summary>
|