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()
|
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();
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user