Browse Source

修改查询顺序

wang bao chen 4 months ago
parent
commit
6aca21c805
1 changed files with 1 additions and 1 deletions
  1. 1 1
      DutyApp/ViewModels/DailyDutyRecordViewModel.cs

+ 1 - 1
DutyApp/ViewModels/DailyDutyRecordViewModel.cs

@@ -150,7 +150,7 @@ namespace DutyApp.ViewModels
             var dailyDuty = await _dutyContext.DailyDutyRecords.
                 Include(x => x.Picture)
                 .Where(x => x.DutyDate == maxDay)
-                .OrderBy(x => x.RecordId)
+                .OrderBy(x => x.Index)
                 .ToListAsync();
 
             if (dailyDuty.Count == 0)