change paginated to list
This commit is contained in:
@@ -2285,7 +2285,7 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
|
||||
return res;
|
||||
}
|
||||
|
||||
public async Task<PagedResult<RollCallCaseHistoryDetail>> GetCaseHistoryDetails(long workshopId, string titleId,
|
||||
public async Task<List<RollCallCaseHistoryDetail>> GetCaseHistoryDetails(long workshopId, string titleId,
|
||||
RollCallCaseHistorySearchModel searchModel)
|
||||
{
|
||||
var query = _context.RollCallEmployeesStatus
|
||||
@@ -2344,7 +2344,7 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
|
||||
.Where(x => x.WorkshopId == workshopId
|
||||
&& employeeIds.Contains(x.EmployeeId)).ToListAsync();
|
||||
|
||||
var res = new PagedResult<RollCallCaseHistoryDetail>();
|
||||
var res = new List<RollCallCaseHistoryDetail>();
|
||||
foreach (var date in dates)
|
||||
{
|
||||
var rollCallInDate = rollCalls
|
||||
@@ -2379,12 +2379,10 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
|
||||
PersonnelCode = personnelCodes.FirstOrDefault(y => y.EmployeeId == employeeId)?.PersonnelCode
|
||||
.ToString(),
|
||||
};
|
||||
res.List.Add(item);
|
||||
res.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
|
||||
return new PagedResult<RollCallCaseHistoryDetail>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user