This commit is contained in:
SamSys
2025-12-22 17:46:02 +03:30
parent 934019c6c6
commit 19f78a230c
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ namespace CompanyManagment.App.Contracts.InstitutionPlan;
public class InstitutionPlanSearchModel : PaginationRequest
{
/// <summary>
/// تعدلد پرسنل برای جستجو
/// تعداد پرسنل برای جستجو
/// </summary>
public int CountPeron { get; set; }
public int CountPerson { get; set; }
}

View File

@@ -340,8 +340,8 @@ public class PlanPercentageRepository : RepositoryBase<long, PlanPercentage>, IP
.Select(x => x.ItemValue).FirstOrDefault();
var plans = _context.InstitutionPlans.AsQueryable();
if (searchModel.CountPeron > 0)
plans = plans.Where(x => x.CountPerson == searchModel.CountPeron);
if (searchModel.CountPerson > 0)
plans = plans.Where(x => x.CountPerson == searchModel.CountPerson);
var planQueryFilter =await plans.ApplyPagination(searchModel.PageIndex, searchModel.PageSize).ToListAsync();
var planResult = planQueryFilter.Select(plan =>