|
@@ -81,7 +81,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
var infos = await _sqlSugar
|
|
|
.Queryable<Grp_RestaurantInfo, Sys_Users>((pi, u) => new JoinQueryInfos(JoinType.Left, pi.CreateUserId == u.Id))
|
|
|
.Where((pi, u) => pi.IsDel == 0 && pi.GroupId == groupId)
|
|
|
- .OrderByDescending((pi, u) => pi.Date)
|
|
|
+ .OrderBy((pi, u) => pi.Date)
|
|
|
.Select((pi, u) => new
|
|
|
{
|
|
|
pi.Id,
|
|
@@ -95,7 +95,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
pi.Tel,
|
|
|
pi.Remark
|
|
|
})
|
|
|
- .OrderByDescending(x => x.Date)
|
|
|
.ToListAsync();
|
|
|
if (!infos.Any()) return new JsonView() { Code = StatusCodes.Status400BadRequest, Msg = "数据未填写!",Data = Array.Empty<dynamic>() };
|
|
|
|