|
@@ -494,14 +494,13 @@ public abstract class SnapshotApplicationBase
|
|
|
.WhereIF(dto.Status == ERedPackPickupStatus.Unreceived, (m, order) => m.PickupStatus == dto.Status && (order.HotspotId == null || order.HotspotId.StartsWith("18") == false))
|
|
|
.WhereIF(dto.Status != ERedPackPickupStatus.Unreceived, (m, order) => m.PickupStatus == dto.Status)
|
|
|
.Where(m => m.CreationTime.ToString("yyyy-MM") == dto.Time)
|
|
|
- .LeftJoin<Order>((red, order) => red.OrderId == order.Id)
|
|
|
- .Select((red, order) => new RedPackOutDto
|
|
|
+ .Select((m, order) => new RedPackOutDto
|
|
|
{
|
|
|
OrderId = order.Id,
|
|
|
- Amount = red.Amount,
|
|
|
+ Amount = m.Amount,
|
|
|
Title = order.Title,
|
|
|
- CreationTime = red.CreationTime,
|
|
|
- RedPackAuditId = red.RedPackAuditId
|
|
|
+ CreationTime = m.CreationTime,
|
|
|
+ RedPackAuditId = m.RedPackAuditId
|
|
|
})
|
|
|
.ToFixedListAsync(dto, cancellationToken);
|
|
|
|
|
@@ -992,6 +991,24 @@ public abstract class SnapshotApplicationBase
|
|
|
else
|
|
|
m.HeadUrl = _systemDicDataCacheManager.HeaderImages("default");
|
|
|
});
|
|
|
+ if (item.Any(m => m.CitizenId == _sessionContext.UserId) == false)
|
|
|
+ {
|
|
|
+ var citizen = await _citizenRepository.GetAsync(_sessionContext.UserId);
|
|
|
+ var count = await _citizenRepository.CountAsync(m => m.Name != "");
|
|
|
+ if (citizen != null)
|
|
|
+ {
|
|
|
+ item.Insert(0, new PointsRankUserDto
|
|
|
+ {
|
|
|
+ UserName = citizen.Name,
|
|
|
+ CitizenId = citizen.Id,
|
|
|
+ PhoneNumber = citizen.PhoneNumber,
|
|
|
+ Rank = count,
|
|
|
+ Points = 0,
|
|
|
+ HeadUrl = _systemDicDataCacheManager.HeaderImages("default"),
|
|
|
+ IsSecurityMax = false
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
outDto.Ranks = item;
|
|
|
return outDto;
|
|
|
}
|