qinchaoyue 1 сар өмнө
parent
commit
1b31298eca

+ 2 - 1
src/Hotline.Application/Snapshot/SnapshotPointsApplication.cs

@@ -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);

+ 5 - 0
src/Hotline.Share/Dtos/Snapshot/PointsDto.cs

@@ -84,6 +84,11 @@ public class PointsItemsOutDto
     [JsonIgnore]
     [Newtonsoft.Json.JsonIgnore]
     public int InTotalPoint { get; set; }
+
+    /// <summary>
+    /// UserId
+    /// </summary>
+    public string UserId { get; set; }
 }