Browse Source

更新版本

master
zhaoxinyu 8 months ago
parent
commit
924f03fcbd
  1. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/NOT_SA_SERVICE.cs

4
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/NOT_SA_SERVICE.cs

@ -79,13 +79,13 @@ namespace Win.Sfs.SettleAccount.Bases
return new PagedResultDto<TEntityDetailDto>(totalCount, dtos);
}
public List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize)
private List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize)
{
int startIndex = (pageNumber - 1) * pageSize;
return dataList.Skip(startIndex).Take(pageSize).ToList();
}
public int CalculatePageCount(int totalCount, int pageSize)
private int CalculatePageCount(int totalCount, int pageSize)
{
int pageCount = totalCount / pageSize;
if (totalCount % pageSize != 0)

Loading…
Cancel
Save