This commit is contained in:
tanglong 2025-07-11 15:12:09 +08:00
parent 7773907d95
commit 37262f7797
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
from s in ds.DefaultIfEmpty()
select new DevicePageListDto
{
Id = s.Id,
Code = d.Code,
DeviceType = d.DeviceType,
StudentNo = d.StudentNo,
@ -85,7 +86,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
res.Total = await query.CountAsync();
var list = await query
var list = await query.OrderByDescending(x => x.Id)
.Skip((dto.PageIndex - 1) * dto.PageSize)
.Take(dto.PageSize)
.ToListAsync();

View File

@ -13,6 +13,7 @@ namespace YD_AllHeartRates.Commons.Dto.Device
/// </summary>
public class DevicePageListDto
{
public int Id { get; set; }
/// <summary>
/// 设备的唯一编码
/// </summary>