fix orderbyDesc

This commit is contained in:
2025-03-25 16:09:37 +08:00
parent c6c9a9a1cd
commit a13fce6072

View File

@@ -57,6 +57,7 @@ public class DevicesController : ControllerBase
{
return await _dbContext.Queryable<DeviceUploadLogEntity>().Where(x => x.RaiseDateTime >= time)
.Where(x => x.TenantId == factory)
.OrderByDescending(x => x.RaiseDateTime)
.Select(x => new DeviceRecordResponse
{
DeviceNo = x.DeviceUniqueNo,