Browse Source

Fix `WithDetailsAsync` method in RefundRepository

pull/149/head
gdlcf88 4 years ago
parent
commit
5ed7fa9a01
  1. 6
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.EntityFrameworkCore/EasyAbp/EShop/Payments/Refunds/RefundRepository.cs

6
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.EntityFrameworkCore/EasyAbp/EShop/Payments/Refunds/RefundRepository.cs

@ -16,7 +16,11 @@ namespace EasyAbp.EShop.Payments.Refunds
public override async Task<IQueryable<Refund>> WithDetailsAsync()
{
return (await base.WithDetailsAsync()).Include(x => x.RefundItems);
return (await base.WithDetailsAsync())
.Include(x => x.RefundItems)
.ThenInclude(x => x.RefundItemOrderLines)
.Include(x => x.RefundItems)
.ThenInclude(x => x.RefundItemOrderExtraFees);
}
public virtual async Task<IQueryable<Refund>> GetQueryableByUserIdAsync(Guid userId)

Loading…
Cancel
Save