|
@@ -42,7 +42,8 @@ public class SnapshotPointsApplication : ISnapshotPointsApplication, IScopeDepen
|
|
|
TotalPoints = SqlFunc.AggregateSum(points.Points),
|
|
|
InTotalPoint = SqlFunc.AggregateSum(SqlFunc.IIF(points.Direction == EPointsDirection.In, points.Points, 0)),
|
|
|
UserName = citizen.Name!,
|
|
|
- PhoneNumber = citizen.PhoneNumber
|
|
|
+ PhoneNumber = citizen.PhoneNumber,
|
|
|
+ UserId = citizen.Id,
|
|
|
})
|
|
|
.OrderByPropertyNameIF(dto.SortField.NotNullOrEmpty() && dto.SortRule == 0, dto.SortField, OrderByType.Desc)
|
|
|
.OrderByPropertyNameIF(dto.SortField.NotNullOrEmpty() && dto.SortRule == 1, dto.SortField, OrderByType.Asc);
|