fix orderbyDesc
This commit is contained in:
@@ -57,6 +57,7 @@ public class DevicesController : ControllerBase
|
|||||||
{
|
{
|
||||||
return await _dbContext.Queryable<DeviceUploadLogEntity>().Where(x => x.RaiseDateTime >= time)
|
return await _dbContext.Queryable<DeviceUploadLogEntity>().Where(x => x.RaiseDateTime >= time)
|
||||||
.Where(x => x.TenantId == factory)
|
.Where(x => x.TenantId == factory)
|
||||||
|
.OrderByDescending(x => x.RaiseDateTime)
|
||||||
.Select(x => new DeviceRecordResponse
|
.Select(x => new DeviceRecordResponse
|
||||||
{
|
{
|
||||||
DeviceNo = x.DeviceUniqueNo,
|
DeviceNo = x.DeviceUniqueNo,
|
||||||
|
|||||||
Reference in New Issue
Block a user