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

View File

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