Merge pull request '排序' (#36) from S01-轨迹中台 into dev

Reviewed-on: http://192.168.80.50:3000/Dotnet/SJZY.Track.Api/pulls/36
This commit is contained in:
liuwenxiang 2024-03-02 16:41:55 +08:00
commit 36c9d8b82d
2 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public class GetTrackTemplateContentPageOutputVO
/// <summary>
/// 排序
/// </summary>
public long Sort { get; set; }
public int Sort { get; set; }
/// <summary>
/// 轨迹标记

View File

@ -97,6 +97,7 @@ public class TrackTemplateRepository : BasicRepository<TrackTemplateEntity>, ITr
UpdateTime = templateContent.UpdateTime,
UpdateUser = updateUser.Name
}, true)
.OrderBy(templateContent => templateContent.Sort)
.ToPagedListAsync(input.PageIndex, input.PageSize);
}