|
|
@ -130,7 +130,7 @@ namespace BBWYB.PurchaserCapture |
|
|
|
.WithTempQuery(g => new { MaxId = g.Max(g.Value.Item1.Id), PurchaserId = g.Key.Id, MemberId = g.Key.MemberId }) |
|
|
|
.From<PurchaseSchemeProduct>() |
|
|
|
.InnerJoin((psp2, psp1) => psp2.MaxId == psp1.Id) |
|
|
|
.OrderByDescending((psp2, psp1) => psp1.Id) |
|
|
|
.OrderByDescending((psp2, psp1) => Guid.NewGuid()) |
|
|
|
.ToList((psp2, psp1) => new |
|
|
|
{ |
|
|
|
psp1.PurchaserId, |
|
|
|