paicu
This commit is contained in:
parent
7773907d95
commit
37262f7797
@ -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();
|
||||
|
@ -13,6 +13,7 @@ namespace YD_AllHeartRates.Commons.Dto.Device
|
||||
/// </summary>
|
||||
public class DevicePageListDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 设备的唯一编码
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user